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 |
---|---|
rotate_icon_path | The svg icon path for rotation. If |
stop_icon_path | The svg icon path for stop button. If |
rotate_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 button |
speed | The rotation speed |
shiny_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
Lewis, Myles J., et al. (2019). Molecular portraits of early rheumatoid arthritis identify clinical and treatment response phenotypes. Cell reports, 28:9
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)