Description Usage Arguments Value References
View source: R/publication_plotting.R
Adds an icon to the lower left hand corner of a plot indicating reducted dimensionality method used
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
)
|
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. |
grid arranged plot using split_plot function
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.