🍑 Pomological plot theme for ggplot2
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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