Man pages for scales
Scale Functions for Visualization

alphaModify colour transparency
area_palArea palettes (continuous)
asn_transArc-sin square root transformation
atanh_transArc-tangent transformation
boxcox_transBox-Cox & modulus transformations
breaks_extendedAutomatic breaks for numeric axes
breaks_logBreaks for log axes
breaks_prettyPretty breaks for date/times
breaks_widthEqually spaced breaks
brewer_palColour Brewer palette (discrete)
cbreaksCompute breaks for continuous scale
col2hclModify standard R colour in hcl colour space.
col_numericColour mapping
colour_rampFast colour interpolation
commaSuperseded interface to 'label_number()'/'label_comma()'
compose_transCompose two or more transformations together
date_breaksRegularly spaced dates
date_formatSuperseded interface to 'label_date()'/'label_time()'
date_transTransformation for dates (class Date)
demo_continuousDemonstrate scales functions with ggplot2 code
div_gradient_palDiverging colour gradient (continuous).
dollar_formatSuperseded interface to 'label_dollar()'
dscaleDiscrete scale
expand_rangeExpand a range with a multiplicative or additive constant
exp_transExponential transformation (inverse of log transformation)
format_formatLabel using 'format()'
fullseqGenerate sequence of fixed size intervals covering range.
gradient_n_palArbitrary colour gradient palette (continuous)
grey_palGrey scale palette (discrete)
hms_transTransformation for times (class hms)
hue_palHue palette (discrete)
identity_palIdentity palette
identity_transIdentity transformation (do nothing)
label_bytesLabel bytes (1 kB, 2 MB, etc)
label_dateLabel date/times
label_dollarLabel currencies ($100, $2.50, etc)
label_logLabel numbers in log format (10^3, 10^6, etc)
label_numberLabel numbers in decimal format (e.g. 0.12, 1,234)
label_number_autoLabel numbers, avoiding scientific notation where possible
label_number_siLabel numbers with SI prefixes (2 kg, 5 mm, etc)
label_ordinalLabel ordinal numbers (1st, 2nd, 3rd, etc)
label_parseLabel with mathematical annotations
label_percentLabel percentages (2.5%, 50%, etc)
label_pvalueLabel p-values (e.g. <0.001, 0.25, p >= 0.99)
label_scientificLabel numbers with scientific notation (e.g. 1e05, 1.5e-02)
label_wrapLabel strings by wrapping across multiple lines
linetype_palLine type palette (discrete)
log_transLog transformations
manual_palManual palette (discrete)
minor_breaks_widthMinor breaks
mutedMute standard colour
numberA low-level numeric formatter
number_bytes_formatOlder interface to 'label_bytes()'
oobOut of bounds handling
ordinal_formatSuperseded interface to 'label_ordinal()'
parse_formatSuperseded interface to 'label_parse()'/'label_math()'
percent_formatSuperseded interface to 'label_percent()'
pretty_breaksSuperseded interface to 'breaks_pretty()'
probability_transProbability transformation
pvalue_formatSuperseded interface to 'label_pvalue()'
RangeMutable ranges
reciprocal_transReciprocal transformation
regular_minor_breaksMinor breaks
rescaleRescale continuous vector to have specified minimum and...
rescale_maxRescale numeric vector to have specified maximum
rescale_midRescale vector to have specified minimum, midpoint, and...
rescale_noneDon't perform rescaling
rescale_palRescale palette (continuous)
reverse_transReverse transformation
scales-packagescales: Scale Functions for Visualization
scientific_formatSuperseded interface to 'label_scientific()'
seq_gradient_palSequential colour gradient palette (continuous)
shape_palShape palette (discrete)
show_colShow colours
sqrt_transSquare-root transformation
time_transTransformation for date-times (class POSIXt)
train_continuousTrain (update) a continuous scale
train_discreteTrain (update) a discrete scale
trans_breaksPretty breaks on transformed scale
trans_formatFormat labels after transformation
trans_rangeCompute range of transformed values
unit_formatUnit labels
viridis_palViridis palette
wrap_formatSuperseded interface to 'label_wrap()'
yj_transYeo-Johnson transformation
zero_rangeDetermine if range of vector is close to zero, with a...
scales documentation built on Aug. 20, 2022, 1:05 a.m.