red_dim_plot: Reduced Dimensionality Plot

Description Usage Arguments Value References

View source: R/publication_plotting.R

Description

Adds an icon to the lower left hand corner of a plot indicating reducted dimensionality method used

Usage

1
2
3
4
5
6
7
8
red_dim_plot(
  plot,
  method = "UMAP",
  size = 20,
  ICON_DIR = system.file("icons", package = "m3addon"),
  correction_x = 0,
  correction_y = 0
)

Arguments

plot

A ggplot2 object

method

method indicating which icon to use. Currently 'tSNE', 'PCA', and 'UMAP' supported

correction_x,

integer to offset icon in x axis

correction_y,

integer to offset icon in y axis

widths

A vector of length 2 specifying the size of the plot grid and legend grid, respectively.

Value

grid arranged plot using split_plot function

References

Puram, S. V. et al. Single-Cell Transcriptomic Analysis of Primary and Metastatic Tumor Ecosystems in Head and Neck Cancer. Cell 171, 1611.e1–1611.e24 (2017).


scfurl/m3addon documentation built on Aug. 9, 2021, 5:30 p.m.