plot_tsne_metadata: tSNE Plot on metadata

Description Usage Arguments Details Examples

View source: R/plot_tsne_metadata.R

Description

This will plot information onto a 2d tsne plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
plot_tsne_metadata(
  input,
  title = "",
  color_by,
  facet_by = NA,
  ncol = "NA",
  size = 1.5,
  alpha = 1,
  colors = NA,
  theme = "classic",
  legend_dot_size = 1.5,
  xcol = "x",
  ycol = "y",
  text_sizes = c(20, 10, 5, 10, 5, 5),
  shuffle = F
)

Arguments

input

the input ex_sc.

title

The title

color_by

What to color points by, either "UMI_sum", or pData categorial variable, ignored if gene is provided

facet_by

What to break the plots by

ncol

How many columns if faceting

size

The size of the points

alpha

The transparency of the points

colors

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

legend_dot_size

Size of dot in legend

xcol

pData column to use for x axis

ycol

pData column to use for y axis

Details

Utilize information stored in pData to control the plot display.

Examples

1
plot_tsne_metadata(ex_sc_example, color_by = "UMI_sum", title = "UMI_sum across clusters", facet_by = "Cluster", ncol = 3)

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