Learn R Programming

PRECAST (version 1.6.5)

dimPlot: Low-dimensional embeddings' plot

Description

Low-dimensional embeddings' plot colored by a specified meta data in the Seurat object.

Usage

dimPlot(seuInt, item=NULL, reduction=NULL, point_size=1,text_size=16, 
                    cols=NULL,font_family='', border_col="gray10",
                    fill_col="white", ...)

Value

Return a ggplot2 object.

Arguments

seuInt

an object named "Seurat".

item

the item used for coloring the plot in the meta data of seuInt object.

reduction

the reduction used for plot in the seuInt object. If reduction is null, the last added one is used for plotting.

point_size

the size of point in the scatter plot.

text_size

the text size in the plot.

cols

colors used in the plot

font_family

the font family used for the plot.

border_col

the border color in the plot.

fill_col

the color used in backgroup.

...

other arguments passed to plot_scatter

.

Author

Wei Liu

Details

Nothing

See Also

None

Examples

Run this code
  data(PRECASTObj)
  PRECASTObj <- SelectModel(PRECASTObj)
  seuInt <- IntegrateSpaData(PRECASTObj, species='unknown')
  dimPlot(seuInt, reduction = 'PRECAST')
  ## or use the Seurat::DimPlot(seuInt, reduction = 'PRECAST')
  

Run the code above in your browser using DataLab