Description Usage Arguments Note
View source: R/add_genoppi_trace.R
adding a trace with new data to plotly is non-trivial. This function takes care of adding data correctly with the correct coloring.
1 | add_genoppi_trace(p, data, parameters, stroke_width = 0.2, legend = F)
|
p |
a plot_ly() object. |
data |
a data.frame with columns dataset, gene, |
parameters |
a list of parameters or an environement generated with |
stroke_width |
numeric. the line width/stroke of a given point. |
legend |
Boolean. should legend be displayed? |
global variable 'global_colors' must be specified using setNames().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.