Description Usage Arguments Examples
These functions provide gnuplot's default color palette.
Use scale_color_gnuplot()
and scale_fill_gnuplot()
with ggplot2,
and gnupalette()
or the vector gnucolors
otherwise.
1 2 3 | scale_color_gnuplot(..., na.value = "gray50", aesthetics = "color")
scale_fill_gnuplot(..., na.value = "gray50", aesthetics = "fill")
gnupalette(n)
|
... |
Arguments passed on to
|
na.value |
Colour to use for missing values |
aesthetics |
Character string or vector of character strings listing the
name(s) of the aesthetic(s) that this scale works with. This can be useful, for
example, to apply colour settings to the |
n |
The number of colors to return |
1 2 3 4 5 6 7 8 9 10 11 | library(ggplot2)
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
geom_point() +
scale_color_gnuplot() +
scale_x_gnuplot() +
scale_y_gnuplot() +
theme_gnuplot()
gnupalette(3)
gnucolors[1:3]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.