plot_scatter: Create a Scatter Plot

Description Usage Arguments Details Examples

View source: R/plot_scatter.R

Description

This will plot information onto a 2d scatter (Gene 1 v Gene 2)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_scatter(
  input,
  gene1,
  title = "",
  gene2,
  color_by,
  facet_by = "NA",
  ncol = "NA",
  size = 2,
  colors = "NA",
  logscale = FALSE
)

Arguments

input

The input data

gene1

The first gene for scatter plot

title

The plot title

gene2

The second gene for scatter plot

color_by

What to color points by, either "UMI_sum" or pData categorial variable

facet_by

What to break the plots by

ncol

How many columns if faceting

size

The size of the points

colors

What colors to utilize for categorial data. Be sure it is of the proper length!

Details

Utilize information stored in pData to control the plot display.

Examples

1
plot_scatter(input = ex_sc_example, title = "Plot", gene1 = "Ccl22", gene2 = "Ccl5", color_by = "Cluster", facet_by = "Timepoint")

kgellatl/SignallingSingleCell documentation built on Dec. 29, 2021, 4:12 p.m.