Description Usage Arguments Value References
View source: R/publication_plotting.R
Creates a grid object comprised of both a plot (ggplot only) and a legend. Function takes a ggplot object as input and returns a grid arrange object with plot on left, legend on right and sizes as dictated by width argument
1 | split_plot(a.gplot, widths = c(4.5/6, 1.5/6))
|
a.gplot |
A ggplot2 object |
widths |
A vector of length 2 specifying the size of the plot grid and legend grid, respectively. |
grid arranged plot
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.