itol_multibar | R Documentation |
https://itol.embl.de/help.cgi#multibar
itol_multibar( df, dataset_label, out_file = "itol_multibar.txt", out_dir = getwd(), legend = NULL, WIDTH = 200, COLOR = "#ff0000" )
df |
A data.frame, tibble, or data.table (see above) |
dataset_label |
What to label the itol dataset |
out_file |
Name of the output file |
out_dir |
Where to write the output |
legend |
A list that includes shapes, colors, and labels (see |
WIDTH |
Bar width |
COLOR |
Legend color |
If a data.frame is provided, the row names must exactly match the tree node labels. If a data.table or tibble is provided, the first column values must exactly match the tree node labels. All other columns are assumed to be values for plotting.
# data.frame df = data.frame(value1 = c(1,2,3), value2 = c(3,2,1), row.names = LETTERS[1:3]) itol_multibar(df, 'test_label') # data.table dt = data.table(taxa = LETTERS[1:3], value1 = c(1,2,3), value2 = c(3,2,1)) itol_multibar(dt, 'test_label')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.