🍑 Pomological plot theme for ggplot2
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

79 Zeilen
3.2KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/scale_pomological.R
  3. \name{scale_pomological}
  4. \alias{scale_pomological}
  5. \alias{scale_colour_pomological}
  6. \alias{scale_color_pomological}
  7. \alias{scale_fill_pomological}
  8. \title{Pomological Color and Fill Scales}
  9. \usage{
  10. scale_colour_pomological(...)
  11. scale_color_pomological(...)
  12. scale_fill_pomological(...)
  13. }
  14. \arguments{
  15. \item{...}{Arguments passed on to \code{ggplot2::discrete_scale}
  16. \describe{
  17. \item{aesthetics}{The names of the aesthetics that this scale works with}
  18. \item{scale_name}{The name of the scale}
  19. \item{palette}{A palette function that when called with a single integer
  20. argument (the number of levels in the scale) returns the values that
  21. they should take}
  22. \item{name}{The name of the scale. Used as axis or legend title. If
  23. \code{waiver()}, the default, the name of the scale is taken from the first
  24. mapping used for that aesthetic. If \code{NULL}, the legend title will be
  25. omitted.}
  26. \item{breaks}{One of:
  27. \itemize{
  28. \item \code{NULL} for no breaks
  29. \item \code{waiver()} for the default breaks computed by the
  30. transformation object
  31. \item A character vector of breaks
  32. \item A function that takes the limits as input and returns breaks
  33. as output
  34. }}
  35. \item{labels}{One of:
  36. \itemize{
  37. \item \code{NULL} for no labels
  38. \item \code{waiver()} for the default labels computed by the
  39. transformation object
  40. \item A character vector giving labels (must be same length as \code{breaks})
  41. \item A function that takes the breaks as input and returns labels
  42. as output
  43. }}
  44. \item{limits}{A character vector that defines possible values of the scale
  45. and their order.}
  46. \item{expand}{Vector of range expansion constants used to add some
  47. padding around the data, to ensure that they are placed some distance
  48. away from the axes. Use the convenience function \code{\link[=expand_scale]{expand_scale()}}
  49. to generate the values for the \code{expand} argument. The defaults are to
  50. expand the scale by 5\% on each side for continuous variables, and by
  51. 0.6 units on each side for discrete variables.}
  52. \item{na.translate}{Unlike continuous scales, discrete scales can easily show
  53. missing values, and do so by default. If you want to remove missing values
  54. from a discrete scale, specify \code{na.translate = FALSE}.}
  55. \item{na.value}{If \code{na.translate = TRUE}, what value aesthetic
  56. value should missing be displayed as? Does not apply to position scales
  57. where \code{NA} is always placed at the far right.}
  58. \item{drop}{Should unused factor levels be omitted from the scale?
  59. The default, \code{TRUE}, uses the levels that appear in the data;
  60. \code{FALSE} uses all the levels in the factor.}
  61. \item{guide}{A function used to create a guide or its name. See
  62. \code{\link[=guides]{guides()}} for more info.}
  63. \item{position}{The position of the axis. "left" or "right" for vertical
  64. scales, "top" or "bottom" for horizontal scales}
  65. \item{super}{The super class to use for the constructed scale}
  66. }}
  67. }
  68. \description{
  69. Color scales based on the USDA Pomological Watercolors paintings.
  70. }
  71. \references{
  72. https://usdawatercolors.nal.usda.gov/pom
  73. }
  74. \seealso{
  75. \link[ggplot2:scale_colour_discrete]{ggplot2::scale_colour_discrete} \link[ggplot2:scale_fill_discrete]{ggplot2::scale_fill_discrete}
  76. }