Skip to content

Commit a66861a

Browse files
committed
Fix parameter plotting
1 parent 50c4fcf commit a66861a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/mod_parameter_heatmap.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ mod_heatmap_beta <- function(
9090
# plot phylogenetic tree -----
9191
ecokit::cat_time("phylogenetic tree plot")
9292

93-
tree <- model_obj$phylotree
93+
tree <- model_obj$phyloTree
9494
# remove prefix "sp_" from tip labels
9595
tree$tip.label <- stringr::str_remove(tree$tip.label, "^sp_")
9696
if (length(tree$edge.length) == 2 * nrow(tree$edge)) {
@@ -451,7 +451,7 @@ mod_heatmap_omega <- function(
451451
# plot phylogenetic tree -----
452452
ecokit::cat_time("Phylogenetic tree plot")
453453

454-
tree <- model_obj$phylotree
454+
tree <- model_obj$phyloTree
455455
# Remove the 'sp_' prefix from tip labels
456456
tree$tip.label <- stringr::str_remove(tree$tip.label, "^sp_")
457457
if (length(tree$edge.length) == 2 * nrow(tree$edge)) {

0 commit comments

Comments
 (0)