Learn R Programming

Seurat (version 5.0.3)

SingleCorPlot: A single correlation plot

Description

A single correlation plot

Usage

SingleCorPlot(
  data,
  col.by = NULL,
  cols = NULL,
  pt.size = NULL,
  smooth = FALSE,
  rows.highlight = NULL,
  legend.title = NULL,
  na.value = "grey50",
  span = NULL,
  raster = NULL,
  raster.dpi = NULL,
  plot.cor = TRUE,
  jitter = TRUE
)

Value

A ggplot2 object

Arguments

data

A data frame with two columns to be plotted

col.by

A vector or factor of values to color the plot by

cols

An optional vector of colors to use

pt.size

Point size for the plot

smooth

Make a smoothed scatter plot

rows.highlight

A vector of rows to highlight (like cells.highlight in SingleDimPlot)

legend.title

Optional legend title

raster

Convert points to raster format, default is NULL which will automatically use raster if the number of points plotted is greater than 100,000

raster.dpi

the pixel resolution for rastered plots, passed to geom_scattermore(). Default is c(512, 512)

plot.cor

...

jitter

Jitter for easier visualization of crowded points