Plots static or interactive plot where each point represents a cell metadata variable whose position on the map depends on cell embeddings determined by the reduction technique used
plot_var(
seu,
group = "batch",
embedding = "umap",
dims = c(1, 2),
highlight = NULL,
pt.size = 1,
return_plotly = FALSE,
...
)
A Seurat object
Name of one or more metadata columns to group (color) cells by.
The dimensional reduction technique to be used
Dimensions to plot, must be a two-length numeric vector
A list of character or numeric vectors of cells to highlight
Adjust point size on the plot
Convert plot to interactive web-based graph
# static mode
plot_var(human_gene_transcript_seu, group = "batch", return_plotly = FALSE)
#> Warning: partial match of 'just' to 'justification'
# interactive plotly plot
plotly_plot <- plot_var(human_gene_transcript_seu, group = "batch")
print(plotly_plot)
#> Warning: partial match of 'just' to 'justification'