jellyfisher | R Documentation |
Creates a Jellyfish plot from samples, a phylogeny, and subclonal compositions.
jellyfisher(
tables,
options = list(),
controls = "closed",
width = NULL,
height = NULL,
elementId = NULL
)
tables |
A named list of data frames. The list must contain the following elements:
|
options |
A named list of options to configure the plot. Available options:
|
controls |
An optional parameter to set the initial state of the controls. Can be "open", "closed", or "hidden". |
width |
The width of the widget |
height |
The height of the widget |
elementId |
An optional element ID for the widget |
The format of the data frames is described with examples in Jellyfish documentation: https://github.com/HautaniemiLab/jellyfish?tab=readme-ov-file#input-data
A Jellyfish plot HTML widget
# Plot the bundled example data
jellyfisher(jellyfisher_example_tables,
options = list(
sampleHeight = 70,
sampleTakenGuide = "none",
showLegend = FALSE
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.