View source: R/dimensionality_reduction_plot.R
dimensionality_reduction_plot | R Documentation |
Generates the dimensionality reduction plots (UMAP or tSNE) based on marker intensities. Cells are grouped by the categories under the selected column.
dimensionality_reduction_plot(
spe_object,
plot_type = "UMAP",
scale = TRUE,
perplexity = 30,
feature_colname
)
spe_object |
SpatialExperiment object in the form of the output of
|
plot_type |
String. Choose from "UMAP" and "TSNE". |
scale |
Boolean. Whether scale the marker intensities. |
perplexity |
Numeric. Perplexity parameter of the Rtsne function (should be positive and no bigger than 3 * perplexity < n - 1, where n is the number of cells). |
feature_colname |
String. Specify the column name to group the cells. |
A plot
dimensionality_reduction_plot(SPIAT::simulated_image, plot_type = "TSNE",
feature_colname = "Phenotype")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.