View source: R/VisualizeData.R
plotEmbedding | R Documentation |
This function will plot an embedding stored in an ArchRProject
plotEmbedding( ArchRProj = NULL, embedding = "UMAP", colorBy = "cellColData", name = "Sample", log2Norm = NULL, imputeWeights = if (!grepl("coldata", tolower(colorBy[1]))) getImputeWeights(ArchRProj), pal = NULL, size = 0.1, sampleCells = NULL, highlightCells = NULL, rastr = TRUE, quantCut = c(0.01, 0.99), discreteSet = NULL, continuousSet = NULL, randomize = TRUE, keepAxis = FALSE, baseSize = 10, plotAs = NULL, threads = getArchRThreads(), logFile = createLogFile("plotEmbedding"), ... )
ArchRProj |
An |
embedding |
The name of the embedding stored in the |
colorBy |
A string indicating whether points in the plot should be colored by a column in |
name |
The name of the column in |
log2Norm |
A boolean value indicating whether a log2 transformation should be performed on the values (if continuous) in plotting. |
imputeWeights |
The weights to be used for imputing numerical values for each cell as a linear combination of other cells values.
See |
pal |
A custom palette (see |
size |
A number indicating the size of the points to plot if |
sampleCells |
A numeric describing number of cells to use for plot. If using impute weights, this will occur after imputation. |
highlightCells |
A character vector of cellNames describing which cells to hightlight if using |
rastr |
A boolean value that indicates whether the plot should be rasterized. This does not rasterize lines and labels, just the internal portions of the plot. |
quantCut |
If this is not |
discreteSet |
The name of a discrete palette from |
continuousSet |
The name of a continuous palette from |
randomize |
A boolean value that indicates whether to randomize points prior to plotting to prevent cells from one cluster being uniformly present at the front of the plot. |
keepAxis |
A boolean value that indicates whether the x- and y-axis ticks and labels should be plotted. |
baseSize |
The base font size to use in the plot. |
plotAs |
A string that indicates whether points ("points") should be plotted or a hexplot ("hex") should be plotted. By default
if |
threads |
The number of threads to be used for parallel computing. |
logFile |
The path to a file to be used for logging ArchR output. |
... |
Additional parameters to pass to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.