Skip to contents

See: https://www.nature.com/documents/NRJs-guide-to-preparing-final-artwork.pdf It's pretty strict. A one column figure is 88 mm wide and a two column figure is 180 mm wide. Depending on the length of the figure caption, there are different maximum heights (see the PDF). Most figures types must be in vector format to prevent quality loss when zooming in. Ever since I found these guidelines, I use them for all figures, even if they are not for Nature... Because it looks nice and I like it.

Usage

save_plot(
  plot,
  path,
  ncol = 1,
  height = 90,
  width = NULL,
  print_it = FALSE,
  verbose = TRUE,
  units = "mm",
  dpi = 600,
  ...
)

Arguments

plot

The plot to save.

path

The path to save the plot.

ncol

The number of columns for the plot. Either 1 (default) or 2.

height

The height of the plot in mm. Default is 90 mm.

width

Optional. The width of the plot in mm. If NULL (default), it will be set to 88 mm for one-column figures and 180 mm for two-column figures.

print_it

Logical. Whether to print the plot in the console. Default is FALSE.

verbose

Logical. Whether to print a message in the console. Default is TRUE.

units

The units for the width and height. Default is "mm".

dpi

The resolution of the plot. Default is 600.

...

Additional arguments passed to ggsave().

Value

Nothing. The function saves the plot to the specified path.