qqSaveGridA4: qqSaveGridA4

View source: R/Seurat.Utils.Visualization.R

qqSaveGridA4R Documentation

qqSaveGridA4

Description

Saves a grid of 2 or 4 ggplot objects onto an A4 page.

Usage

qqSaveGridA4(
  plotlist = pl,
  plots = 1:2,
  NrPlots = length(plots),
  height = 11.69,
  width = 8.27,
  fname = "Fractions.Organoid-to-organoid variation.png",
  ...
)

Arguments

plotlist

A list of ggplot objects. Default: pl.

plots

A numeric vector indicating the indices of the plots to save from the 'plotlist'. Default: 1:2.

NrPlots

Number of plots to save. Default: length(plots).

height

Height for the saved image. Default: 11.69.

width

Width for the saved image. Default: 8.27.

fname

File name for the saved image. Default: "Fractions.Organoid-to-organoid variation.png".

...

Additional arguments passed to the plot_grid function.

Value

This function does not return a value. It saves a grid plot of ggplot objects to the specified file.

See Also

plot_grid

Examples

## Not run: 
if (interactive()) {
  qqSaveGridA4(plotlist = pl, plots = 1:2, fname = "Fractions.per.Cl.png")
  qqSaveGridA4(plotlist = pl, plots = 1:4, fname = "Fractions.per.Cl.4.png")
}

## End(Not run)

vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.