Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

images

Images


Description

A TIFF photograph of Farouq the cat in a washing machine. CC-BY-SA 4.0 Richard Cotton, 2014.

Format

An image file.

Details

A JPEG photograph of a greater one-horned rhinoceros (Rhinoceros unicornis) taken in Kaziranga National Park, Assam, India. CC-BY-SA 4.0 Janette Cotton, 2016.

An SVG picture of a fat, pink winged unicorn. CC-BY-SA 4.0 Sara Lendal, 2016.

A PNG of the R logo. CC-BY-SA 4.0 The R Foundation, 2016.

Examples

figure <- multi_panel_figure(
  width = c(60, 40, 40), height = c(40, 40, 40)
)
image_files <- system.file("extdata", package = "multipanelfigure") %>%
  dir(full.names = TRUE) %>%
  setNames(basename(.))
figure %>%
  fill_panel(image_files["farouq.tiff"]) %>%
  fill_panel(image_files["unicorn.svg"], column = 2:3) %>%
  fill_panel(image_files["rhino.jpg"], row = 2:3) %>%
  fill_panel(image_files["Rlogo.png"], column = 2:3, row = 2:3)

multipanelfigure

Infrastructure to Assemble Multi-Panel Figures (from Grobs)

v2.1.2
GPL (>= 3)
Authors
Johannes Graumann [cre, aut], Richard Cotton [ctb]
Initial release
2020-03-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.