Error in apply(layout_matrix, MARGIN = 2, function(x) all(is.na(x))) :
dim(X) must have a positive length
heat_tree(obj$filter_taxa(taxon_names == "Bacteria", subtaxa = TRUE), node_label = taxon_names, node_size = n_obs, node_color = log2_median_ratio, node_color_range = c("purple", "grey95", "orange"), node_size_axis_label = "species count", node_color_axis_label = "Log 2 ratio of median proportions", layout = "davidson-harel", initial_layout = "reingold-tilford", title = "Orange = Higher Abundance in control\n Purple = Higher Abundance in marinas", title_size = 0.05, edge_label_size_range = c(1,5))
heat_tree_matrix(obj$filter_taxa(taxon_names == "Bacteria", subtaxa = TRUE), data = "diff_table", node_size = n_obs, node_label = taxon_names, node_color = log2_median_ratio, # node_color_range = set_3_rb, node_color_range = c("purple", "gray95", "orange"), node_size_axis_label = "species count", layout = "davidson-harel", initial_layout = "reingold-tilford", node_color_axis_label = "Log2 ratio median proportions")
The error code was just a bit cryptic to me.
On the new topic: there isn't a way to use the "combinations" to indicate different sets.
It'd already be great if i could get the tree matrix to only compare control vs marina samples..