View source: R/watchos-colours.R
scale_colour_watchos_dark | R Documentation |
watchOS colors are very bright but do not necessary have a lot of contrast. We strictly recommend to pair them with dark themes, e.g., 'theme_sf_dark()'.
**Notes** - *While watchOS color palettes provide a total of 10 colors, we do not recommend using them for more than 7 groups. The last three colors often collide with other colors in the palette and may affect the clarity of your visualization.* - See [watchOS colors](watchos_colour_palettes.html) for more details on raw colors.
scale_colour_watchos_dark(order = "contrast", ...) scale_fill_watchos_dark(order = "contrast", ...)
order |
Indicates the order of colors in the palette |
... |
Arguments passed on to
|
Other colour scales:
scale_colour_ios_dark()
,
scale_colour_ios_gray_dark()
,
scale_colour_ios_gray_light()
,
scale_colour_ios_light()
,
scale_colour_macos_dark()
,
scale_colour_macos_light()
## Not run: library(ggplot2) ggplot(mtcars, aes(y = mpg, x = as.factor(cyl))) + geom_boxplot(aes(color = as.factor(cyl), fill = as.factor(cyl))) + labs(x = "Miles Per Gallon", y = "MPG", fill = "Number of Cylinders", color = "Number of Cylinders", title = "Fuel Economy", subtitle = "Fuel economy declines as engines gets bigger", caption = "Data from the 1974 Motor Trend US magazine.") + theme_sf_dark() + scale_fill_watchos_dark() + scale_colour_watchos_dark() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.