visualizeTumor: Interactive visualization of the simulated tumor

Description Usage Arguments Details Value Author(s)

View source: R/visualize.R

Description

Interactive visualization of the simulated tumor using the rgl package (if available).

Usage

1
visualizeTumor(tumor, plot.type = "normal", background = "black", axes = FALSE)

Arguments

tumor

A list which is the output of simulateTumor().

plot.type

Which type of plot to draw. "Normal" assigns a random rgb value to each genotype while "heat" colors cells with more mutations red and cells with fewer mutations blue.

background

If rgl is installed, this will set the color of the background

axes

Will include axes (rgl only).

Details

If rgl is installed, then the plots will be interactive. If rgl is unavailable, static plots will be created with scatterplot3d. Since plotting performance with scatterplot3d is reduced, it is strongly recommended that rgl is installed for optimal use of this function.

Value

None.

Author(s)

Phillip B. Nicol


SITH documentation built on Jan. 5, 2021, 5:08 p.m.