scale_color_gnuplot {ggnuplot} | R Documentation |
The gnuplot color palette for discrete data, ported to ggplot2
Description
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.
Usage
scale_color_gnuplot(..., na.value = "gray50", aesthetics = "color")
scale_fill_gnuplot(..., na.value = "gray50", aesthetics = "fill")
gnupalette(n)
Arguments
... |
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 |
Examples
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]