Axis labelsUse these functions with the |
|
---|---|
Label bytes (1 kb, 2 MB, etc) |
|
|
Label date/times |
Label currencies ($100, $2.50, etc) |
|
|
Label numbers in decimal format (e.g. 0.12, 1,234) |
Label numbers, avoiding scientific notation where possible |
|
Label numbers with SI prefixes (2k, 1M, 5T etc) |
|
|
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 |
|
Axis breaksUse these functions with the |
|
Automatic breaks for numeric axes |
|
Breaks for log axes |
|
Pretty breaks for date/times |
|
Equally spaced breaks |
|
Minor breaks |
|
Bounds: ranges & rescalingFunctions for rescaling data and adjusting scale ranges. |
|
Rescale continuous vector to have specified minimum and maximum |
|
Rescale numeric vector to have specified maximum |
|
Rescale vector to have specified minimum, midpoint, and maximum |
|
Don't perform rescaling |
|
Rescale palette (continuous) |
|
Expand a range with a multiplicative or additive constant |
|
Determine if range of vector is close to zero, with a specified tolerance |
|
|
Out of bounds handling |
TransformationsFunctions to describe common and custom scale transformations their inverses, and ways of generating breaks and labels. |
|
Arc-sin square root transformation |
|
Arc-tangent transformation |
|
Box-Cox & modulus transformations |
|
Transformation for dates (class Date) |
|
Exponential transformation (inverse of log transformation) |
|
Transformation for times (class hms) |
|
Identity transformation (do nothing) |
|
|
Log transformations |
Probability transformation |
|
Reciprocal transformation |
|
Reverse transformation |
|
Square-root transformation |
|
Transformation for date-times (class POSIXt) |
|
Yeo-Johnson transformation |
|
Colour palettes & colour mappingFunctions for specifying colour palettes, colour mapping, and various helper functions. |
|
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) |
|
Sequential colour gradient palette (continuous) |
|
Rescale palette (continuous) |
|
Viridis palette |
|
Modify standard R colour in hcl colour space. |
|
Colour mapping |
|
Fast colour interpolation |
|
Mute standard colour |
|
Modify colour transparency |
|
Non-colour palette functionsFunctions to help scale non-colour aesthetics. |
|
Area palettes (continuous) |
|
Identity palette |
|
Line type palette (discrete) |
|
Manual palette (discrete) |
|
Rescale palette (continuous) |
|
Shape palette (discrete) |
|
Creating your own scales and mutable rangesScales control the details of how data values are translated to visual properties. The following functions help users create (and update) custom scales: pulling together palettes, bounding functions and transformations to provide a complete pathway from raw data to perceptual properties. |
|
Continuous scale |
|
Discrete scale |
|
Train (update) a continuous scale |
|
Train (update) a discrete scale |
|
Mutable ranges |