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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
figure <- multi_panel_figure(
  widths = c(60, 40, 40), heights = c(40, 40, 40)
)
image_files <- system.file("extdata", package = "multipanelfigure") %>%
  dir(full.names = TRUE) %>%
  setNames(basename(.))
figure %>%
  add_panel(image_files["farouq.tiff"]) %>%
  add_panel(image_files["unicorn.svg"], left_panel = 2, right_panel = 3) %>%
  add_panel(image_files["rhino.jpg"], top_panel = 2, bottom_panel = 3) %>%
  add_panel(
  image_files["Rlogo.png"],
  left_panel = 2, right_panel = 3, top_panel = 2, bottom_panel = 3)