Scale Functions for Visualization
Modify colour transparency
Breaks for exponentially transformed data
Automatic breaks for numeric axes
Breaks for log axes
Pretty breaks for date/times
Breaks for timespan data
Equally spaced breaks
Compute breaks for continuous scale
Mix colours
Colour mapping
Modify standard R colour in hcl colour space.
Colour manipulation
Fast colour interpolation
Superseded interface to label_number()/label_comma()
Compose two or more label formatters together
Continuous scale
Regularly spaced dates
Superseded interface to label_date()/label_time()
Demonstrate scales functions with ggplot2 code
Superseded interface to label_currency()
Discrete scale
Expand a range with a multiplicative or additive constant
Label using format()
Generate sequence of fixed size intervals covering range.
Label bytes (1 kB, 2 MB, etc)
Label currencies ($100, €2.50, etc)
Label date/times
Labels from lookup tables
Interpolated labels
Label numbers in log format (10^3, 10^6, etc)
Label numbers, avoiding scientific notation where possible
Label numbers with SI prefixes (2 kg, 5 mm, etc)
Label numbers in decimal format (e.g. 0.12, 1,234)
Label ordinal numbers (1st, 2nd, 3rd, etc)
Label with mathematical annotations
Label percentages (2.5%, 50%, etc)
Label p-values (e.g. <0.001, 0.25, p >= 0.99)
Label numbers with scientific notation (e.g. 1e05, 1.5e-02)
Label strings by wrapping across multiple lines
Minor breaks for log-10 axes
Minor breaks
Mute standard colour
Constructors for palettes
Create a new transformation object
Older interface to label_bytes()
Number options
A low-level numeric formatter
Out of bounds handling
Superseded interface to label_ordinal()
Area palettes (continuous)
Colour Brewer palette (discrete)
Dichromat (colour-blind) palette (discrete)
Diverging colour gradient (continuous).
Arbitrary colour gradient palette (continuous)
Grey scale palette (discrete)
Hue palette (discrete)
Identity palette
Line type palette (discrete)
Manual palette (discrete)
Rescale palette (continuous)
Sequential colour gradient palette (continuous)
Shape palette (discrete)
Viridis palette
Recommendations for colour palettes
Superseded interface to label_parse()/label_math()
Superseded interface to label_percent()
Superseded interface to breaks_pretty()
Superseded interface to label_pvalue()
Mutable ranges
Minor breaks
Rescale numeric vector to have specified maximum
Rescale vector to have specified minimum, midpoint, and maximum
Don't perform rescaling
Rescale continuous vector to have specified minimum and maximum
scales: Scale Functions for Visualization
Superseded interface to label_scientific()
Show colours
Train (update) a continuous scale
Train (update) a discrete scale
Pretty breaks on transformed scale
Format labels after transformation
Inverse Hyperbolic Sine transformation
Arc-sin square root transformation
Arc-tangent transformation
Box-Cox & modulus transformations
Compose two or more transformations together
Transformation for dates (class Date)
Exponential transformation (inverse of log transformation)
Identity transformation (do nothing)
Log transformations
Probability transformation
Reciprocal transformation
Reverse transformation
Square-root transformation
Transformation for date-times (class POSIXt)
Transformation for times (class hms)
Yeo-Johnson transformation
Compute range of transformed values
Unit labels
Superseded interface to label_wrap()
Determine if range of vector is close to zero, with a specified tolera...
Graphical scales map data to aesthetics, and provide methods for automatically determining breaks and labels for axes and legends.
Useful links