This function takes an object of class iCellR and provides plots for genes.
gene.plot(
x = NULL,
gene = NULL,
cond.shape = FALSE,
conds.to.plot = NULL,
data.type = "main",
box.to.test = 0,
box.pval = "sig.signs",
plot.data.type = "tsne",
scaleValue = TRUE,
min.scale = 0,
max.scale = 2.5,
clust.dim = 2,
col.by = "clusters",
plot.type = "scatterplot",
cell.size = 1,
cell.colors = c("gray", "red"),
box.cell.col = "black",
box.color = "red",
box.line.col = "green",
back.col = "white",
cell.transparency = 1,
box.transparency = 0.5,
interactive = TRUE,
out.name = "plot",
write.data = FALSE
)
An object of class iCellR.
An object of class iCellR.
Gene name/names to be plotted.
If TRUE the conditions will be shown in shapes.
Choose the conditions you want to see in the plot, default = NULL (all conditions).
Choose from "main", "atac, "atac.imputed" and "imputed", default = "main".
A cluster number so that all the boxes in the box plot would be compared to. If set to "0" the cluster with the highest avrage would be choosen, default = 0.
Choose from "sig.values" and "sig.signs". If set to "sig.signs" p values would be replaced with signs ("na", "*", "**", "***"), default = "sig.signs".
Choose between "tsne", "pca", "umap", "knetl", "diffusion", "pseudo.A" and "pseudo.B", default = "tsne".
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.
2 for 2D plots and 3 for 3D plots, default = 2.
Choose from "clusters" and "conditions", default = "clusters".
Choose from "scatterplot", "boxplot" and "barplot", default = "scatterplot".
A number for the size of the points in the plot, default = 1.
Colors for heat mapping the points in "scatterplot", default = c("gray","red").
A color for the points in the box plot, default = "black".
A color for the boxes in the "boxplot", default = "red".
A color for the lines around the "boxplot", default = "green".
A color for the plot background, default = "black".
Color transparency for points in "scatterplot" and "boxplot", default = 1.
Color transparency for box in "boxplot", default = 0.5.
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".
Write export the data used for the plot plot, default = TFALSE.