add_genoppi_trace: add genoppi trace

Description Usage Arguments Note

View source: R/add_genoppi_trace.R

Description

adding a trace with new data to plotly is non-trivial. This function takes care of adding data correctly with the correct coloring.

Usage

1
add_genoppi_trace(p, data, parameters, stroke_width = 0.2, legend = F)

Arguments

p

a plot_ly() object.

data

a data.frame with columns dataset, gene,

parameters

a list of parameters or an environement generated with environment().

stroke_width

numeric. the line width/stroke of a given point.

legend

Boolean. should legend be displayed?

Note

global variable 'global_colors' must be specified using setNames().


frhl/genoppi-v4 documentation built on May 5, 2020, 7:16 a.m.