View source: R/Seurat.Utils.Visualization.R
save2plots.A4 | R Documentation |
Arranges and saves two UMAP plots (or any plots) side-by-side or one above the other on a single A4 page.
save2plots.A4(
plot_list,
pname = FALSE,
suffix = NULL,
scale = 1,
nrow = 2,
ncol = 1,
h = 11.69 * scale,
w = 8.27 * scale,
...
)
plot_list |
A list containing ggplot objects to be arranged and saved. |
pname |
Boolean indicating if the plot name should be automatically generated;
if FALSE, the name is based on |
suffix |
Suffix to be added to the generated filename if |
scale |
Scaling factor for adjusting the plot size; Default: 1. |
nrow |
Number of rows in the plot arrangement; Default: 2. |
ncol |
Number of columns in the plot arrangement; Default: 1. |
h |
Height of the plot, calculated as A4 height times |
w |
Width of the plot, calculated as A4 width times |
... |
Additional parameters passed to |
## Not run:
p1 <- ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
geom_point()
p2 <- ggplot(iris, aes(Petal.Length, Petal.Width, color = Species)) +
geom_point()
save2plots.A4(plot_list = list(p1, p2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.