R/visualization.R
LinkedPlots.Rd
Visualize spatial and clustering (dimensional reduction) data in a linked, interactive framework
A Seurat object
Dimensions to plot, must be a two-length numeric vector specifying x- and y-dimensions
Which dimensionality reduction to use. If not specified, first searches for umap, then tsne, then pca
Name of the image to use in the plot
Choose the scale factor ("lowres"/"hires") to apply in order to matchthe plot with the specified `image` - defaults to "lowres"
Name of meta.data column to group the data by
Controls opacity of spots. Provide as a vector specifying the min and max for SpatialFeaturePlot. For SpatialDimPlot, provide a single alpha value for each plot.
Combine plots into a single gg object; note that if TRUE; themeing will not work when plotting multiple features/groupings
Feature to visualize
If plotting a feature, which data slot to pull from (counts, data, or scale.data)
Returns final plots. If combine
, plots are stiched together
using CombinePlots
; otherwise, returns a list of ggplot objects
if (FALSE) {
LinkedDimPlot(seurat.object)
LinkedFeaturePlot(seurat.object, feature = 'Hpca')
}