Man pages for scales
Scale Functions for Visualization

alphaModify colour transparency
breaks_extendedAutomatic breaks for numeric axes
breaks_logBreaks for log axes
breaks_prettyPretty breaks for date/times
breaks_timespanBreaks for timespan data
breaks_widthEqually spaced breaks
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()'
date_breaksRegularly spaced dates
date_formatSuperseded interface to 'label_date()'/'label_time()'
demo_continuousDemonstrate scales functions with ggplot2 code
dollar_formatSuperseded interface to 'label_currency()'
dscaleDiscrete scale
expand_rangeExpand a range with a multiplicative or additive constant
format_formatLabel using 'format()'
fullseqGenerate sequence of fixed size intervals covering range.
label_bytesLabel bytes (1 kB, 2 MB, etc)
label_currencyLabel currencies ($100, €2.50, etc)
label_dateLabel date/times
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
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()'
pal_areaArea palettes (continuous)
pal_brewerColour Brewer palette (discrete)
pal_div_gradientDiverging colour gradient (continuous).
pal_gradient_nArbitrary colour gradient palette (continuous)
pal_greyGrey scale palette (discrete)
pal_hueHue palette (discrete)
pal_identityIdentity palette
pal_linetypeLine type palette (discrete)
pal_manualManual palette (discrete)
pal_rescaleRescale palette (continuous)
pal_seq_gradientSequential colour gradient palette (continuous)
pal_shapeShape palette (discrete)
pal_viridisViridis palette
parse_formatSuperseded interface to 'label_parse()'/'label_math()'
percent_formatSuperseded interface to 'label_percent()'
pretty_breaksSuperseded interface to 'breaks_pretty()'
pvalue_formatSuperseded interface to 'label_pvalue()'
RangeMutable ranges
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
scales-packagescales: Scale Functions for Visualization
scientific_formatSuperseded interface to 'label_scientific()'
show_colShow colours
train_continuousTrain (update) a continuous scale
train_discreteTrain (update) a discrete scale
trans_breaksPretty breaks on transformed scale
transform_asinhInverse Hyperbolic Sine transformation
transform_asnArc-sin square root transformation
trans_formatFormat labels after transformation
transform_atanhArc-tangent transformation
transform_boxcoxBox-Cox & modulus transformations
transform_composeCompose two or more transformations together
transform_dateTransformation for dates (class Date)
transform_expExponential transformation (inverse of log transformation)
transform_identityIdentity transformation (do nothing)
transform_logLog transformations
transform_probabilityProbability transformation
transform_reciprocalReciprocal transformation
transform_reverseReverse transformation
transform_sqrtSquare-root transformation
transform_timeTransformation for date-times (class POSIXt)
transform_timespanTransformation for times (class hms)
transform_yjYeo-Johnson transformation
trim_to_domainCompute range of transformed values
unit_formatUnit labels
wrap_formatSuperseded interface to 'label_wrap()'
zero_rangeDetermine if range of vector is close to zero, with a...
scales documentation built on July 4, 2024, 1:11 a.m.