plot_metadata: Plot on metadata

Description Usage Arguments Details Examples

View source: R/plot_metadata.R

Description

This will plot information onto a 2d plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
plot_metadata(
  input,
  color_by,
  facet_by = NULL,
  coords = NULL,
  title = NULL,
  colors = NULL,
  size = 1.5,
  ncol = 2,
  legend_dot_size = 1.5,
  text_sizes = c(20, 10, 5, 10, 5, 5),
  shuffle = T,
  xlab = "x",
  ylab = "y"
)

Arguments

input

the input ex_sc.

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

coords

A vector of character lem, x, and u. See set_xy function. #' @param title The title

colors

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

size

The size of the points

ncol

How many columns if faceting

legend_dot_size

Size of dot in legend

text_sizes

the text sizes on the plot

xlab

character x label

ylab

character y label

theme

the ggplot theme

whether

or not to shuffle the matrix to prevent last plotted factor blocking rest

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/SignalCell documentation built on Sept. 3, 2020, 8:45 a.m.