plot.projection | R Documentation |
Plots the UMAP representation of the reference map, together with the projected coordinates of a query dataset.
## S3 method for class 'projection'
plot(
ref,
query = NULL,
labels.col = "functional.cluster",
cols = NULL,
linesize = 1,
pointsize = 1,
ref.alpha = 0.3,
ref.size = NULL,
...
)
ref |
Reference object |
query |
Seurat object with query data |
labels.col |
The metadata field to annotate the clusters (default: functional.cluster) |
cols |
Custom color palette for clusters |
linesize |
Contour line thickness for projected query |
pointsize |
Point size for cells in projected query |
ref.alpha |
Transparency parameter for reference cells |
ref.size |
Adjust point size for reference cells |
... |
Additional parameters for |
UMAP plot of reference map with projected query set in the same space
data(query_example_seurat)
ref <- load.reference.map()
q <- Run.ProjecTILs(query_example_seurat, ref=ref, fast.umap.predict=TRUE)
plot.projection(ref=ref, query=q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.