This function takes an object of class iCellR and creates spatial plots.
spatial.plot(
x = NULL,
cell.size = 1,
cell.colors = c("gray", "red"),
back.col = "black",
col.by = "clusters",
conds.to.plot = NULL,
gene = NULL,
data.type = "main",
scaleValue = TRUE,
min.scale = 0,
max.scale = 2.5,
anno.clust = FALSE,
anno.size = 4,
anno.col = "white",
cell.transparency = 1,
interactive = TRUE,
out.name = "plot"
)
An object of class iCellR.
An object of class iCellR.
A numeric value for the size of the cells, default = 1.
Colors for heat mapping the points in "scatterplot", default = c("gray","red").
A color for the plot background, default = "black".
Choose between "clusters", "mt","UMIs","nGenes", "cc" (cell cycle) or "gene", default = "clusters".
Choose the conditions you want to see in the plot, default = NULL (all conditions).
Gene name/names to be plotted, if col.by = "gene".
Choose from "main" or "imputed", default = "main".
Scale the colors, default = FALSE.
If scaleValue = TRUE, set a number for min, default = -2.5.
If scaleValue = TRUE, set a number for max, default = 2.5.
Annotate cluster names on the plot, default = TRUE.
If anno.clust is TRUE set font size, default = 3.
If anno.clust is TRUE set color, default = "white".
Color transparency for points in "scatterplot" and "boxplot", default = 1.
If set to TRUE an interactive HTML file will be created, default = TRUE.
If "interactive" is set to TRUE, the out put name for HTML, default = "plot".