Add mode bar button to rotate the plot
add_animation( p, rotate_icon_path = NULL, stop_icon_path = NULL, rotate_colour = "#c7c7c7", stop_colour = "#ff6347", scale = "scale(0.4) translate(-4, -4)", speed = 320, shiny_event_names = c() )
p
: The volcano3D
plotrotate_icon_path
: The svg icon path for rotation. If NULL
a play button is usedstop_icon_path
: The svg icon path for stop button. If NULL
a pause button is usedrotate_colour
: The colour for the rotate button (default="#c7c7c7")stop_colour
: The colour for the stop button (default='#ff6347', a.k.a 'tomato')scale
: Scaling for rotation buttonspeed
: The rotation speedshiny_event_names
: If using shiny, pass in any shiny event names which should stop rotation when triggered (e.g. shiny_event_names = c('replot'))Returns a rotating cylindrical 3D plotly plot featuring variables on a tri-axis radial graph with the -log10(multi-group test p-value) on the z-axis
data(example_data) syn_polar <- polar_coords(outcome = syn_example_meta$Pathotype, data = t(syn_example_rld)) p <- volcano3D(syn_polar, label_rows = c("COBL", "TREX2")) add_animation(p)
Lewis, Myles J., et al. (2019). c("\n", "Molecular portraits of early rheumatoid arthritis identify clinical and\n", "treatment response phenotypes.")
Cell reports, 28 :9
volcano3D
Useful links