Skip to contents

3D plotting with rgl

Usage

plot_tumor3d(.tbl = NULL, limits = NULL)

snapshot_surface(.tbl, filename = tempfile("rgl_", fileext = ".png"), ...)

add_col(.tbl, column = "clade", palette = "turbo", ...)

Arguments

.tbl

data.frame with (x, y, z, col)

limits

passed to xlim, ylim, zlim of rgl::plot3d()

filename

string

...

passed to plot_tumor3d().

column

column name to colorcode

palette

name of palette in grDevices or viridis.

Details

plot_tumor3d plots tumor in 3D with rgl.

snapshot_surface is a shortcut of plot_tumor3d() and rgl::snapshot3d().

add_col adds a column for color in plot_tumor3d().