ggpomological (version 0.1.2)

paint_pomological: Paint a ggpomological watercolor

Description

Uses magick to paint a pomological watercolor. (Paints your plot onto a pomological watercolor style paper, with texture overlay.)

Usage

paint_pomological(
  pomo_gg,
  width = 800,
  height = 500,
  pointsize = 16,
  outfile = NULL,
  pomological_background = pomological_images("background"),
  pomological_overlay = pomological_images("overlay"),
  ...
)

Arguments

pomo_gg

A pomologically styled ggplot2 object. See theme_pomological()

width

Width of output image in pixels

height

Height of output image in pixels

pointsize

Text size for plot text

outfile

Optional name for output file if you'd like to save the image

pomological_background

Paper image, defaults to paper texture provided by ggpomological.

pomological_overlay

Overlay texture. Set to NULL for no texture.

...

Arguments passed on to magick::image_graph

res

resolution in pixels

clip

enable clipping in the device. Because clipping can slow things down a lot, you can disable it if you don't need it.

antialias

TRUE/FALSE: enables anti-aliasing for text and strokes

References

https://usdawatercolors.nal.usda.gov/pom

See Also

theme_pomological