Skip to content

Commit

Permalink
fix bug when NAs are present in core gene phylo labels
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary-foster committed Jul 29, 2024
1 parent f5238d4 commit ec71cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/main_report/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ plot_one <- function(x) {
print(core_plots[[x]])
}
tip_count <- sum(core_plots[[1]]$data$isTip)
max_label_size <- max(nchar(core_plots[[1]]$data$label))
max_label_size <- max(nchar(core_plots[[1]]$data$label, keepNA = FALSE))
print_figures_with_selector(plot_one, selector = list('Color By' = names(core_plots)), id_prefix = 'core-gene-phylo', width = 1700 + max_label_size * 30, height = 500 + tip_count * 60, res = 300)
```

Expand Down

0 comments on commit ec71cdd

Please sign in to comment.