Coloring Scale for Data Visualization
scale_rextor.Rd
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!
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
orfill
, defaults tocolor
.- ...
Other common scale parameters.