scale_colour_natparks_c | R Documentation |
Function for using NatParksPalettes
colors schemes in ggplot2
. Use scale_color_natparks_d
and scale_fill_natparks_d
for discrete scales and scale_color_natparks_c
and scale_fill_natparks_c
for continuous scales.
scale_colour_natparks_c(name, direction = 1, ...)
name |
Name of Palette. Choices are:
|
direction |
Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed |
... |
Other arguments passed on to |
A function that returns a continuous colour scale.
library(ggplot2) ggplot(data=iris, aes(x=Sepal.Length, y=Sepal.Width, color=Sepal.Length)) + geom_point() + scale_colour_natparks_c("Arches2", direction=-1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.