R package version 1.2.0
The following is required for installing the package:
R version 4.0.0 or newer.Rcpp which can be downloaded from CRAN by running
install.packages("Rcpp") from the console.rgl is strongly recommended for visualizations can be
downloaded from CRAN by running install.packages(rgl) from the
console.
rgl.See the package documentation for a complete list of dependencies.
As the package is on CRAN, it can be installed by running
install.packages(SITH) from the command line.
Alternatively, the package can be installed directly from this
repository by first installing devtools (run
install.packages(devtools)) and then running
install_github("phillipnicol/SITH") from the console.
rgl.
set.seed(1126490984)
library(SITH)
library(rgl)
Generate a tumor with $10^6$ cells:
out <- simulateTumor(max_pop = 1000000, verbose = FALSE)
visualizeTumor(out, background = "white")
rgl::view3d(zoom = 0.66)

visualizeTumor(out, background = "white", plot.type = "heat")
rgl::view3d(zoom = 0.66)

If you use SITH in your work, please cite:
Nicol, P.B., Barabasi, D.L., Coombes, K.R. and Asiaee, A. (2022). SITH: an R package for visualizing and analyzing a spatial model of intratumor heterogeneity. Computational and Systems Oncology. Vol 2(2), pg. e1033. https://doi.org/10.1002/cso2.1033.