Skip to contents

This scale is very versatile and powerful. It offers several color palettes to choose from and automatically recognizes whether to use a discrete or continuous scale depending on the data type of the mapping object. It can also be used for both color and fill aesthetics by defining aesthetic accordingly directly inside the function!

Usage

scale_rextor(pal = "cute", direction = 1, aesthetic = "color", ...)

Arguments

pal

Color palette. Use either numbers from 1 to X or one of the names: 'arby', 'cute'...

direction

Direction of the color palette. Keep blank or use 1 for the default direction or use -1 to reverse the colors.

aesthetic

Which aesthetic to use the scale on; either color or fill, defaults to color.

...

Other common scale parameters.

Value

ggplot plot object

Examples

library(ggplot2)
ggplot(iris, aes(Species, Petal.Width, color = Petal.Width)) + 
geom_jitter() + 
theme_wob() + 
scale_rextor()