🍑 Pomological plot theme for ggplot2
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

45 líneas
1.5KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/paint_pomological.R
  3. \name{paint_pomological}
  4. \alias{paint_pomological}
  5. \title{Paint a ggpomological watercolor}
  6. \usage{
  7. paint_pomological(pomo_gg, width = 800, height = 500, pointsize = 16,
  8. outfile = NULL, pomological_background = pomological_images("background"),
  9. pomological_overlay = pomological_images("overlay"), ...)
  10. }
  11. \arguments{
  12. \item{pomo_gg}{A pomologically styled ggplot2 object. See \code{\link[=theme_pomological]{theme_pomological()}}}
  13. \item{width}{Width of output image in pixels}
  14. \item{height}{Height of output image in pixels}
  15. \item{pointsize}{Text size for plot text}
  16. \item{outfile}{Optional name for output file if you'd like to save the image}
  17. \item{pomological_background}{Paper image, defaults to paper texture provided
  18. by ggpomological.}
  19. \item{pomological_overlay}{Overlay texture. Set to \code{NULL} for no texture.}
  20. \item{...}{Arguments passed on to \code{magick::image_graph}
  21. \describe{
  22. \item{res}{resolution in pixels}
  23. \item{clip}{enable clipping in the device. Because clipping can slow things down
  24. a lot, you can disable it if you don't need it.}
  25. \item{antialias}{TRUE/FALSE: enables anti-aliasing for text and strokes}
  26. }}
  27. }
  28. \description{
  29. Uses \link{magick} to paint a pomological watercolor. (Paints your plot onto a
  30. pomological watercolor style paper, with texture overlay.)
  31. }
  32. \references{
  33. https://usdawatercolors.nal.usda.gov/pom
  34. }
  35. \seealso{
  36. \link{theme_pomological}
  37. }