Scale Functions for Visualization


[Up] [Top]

Documentation for package ‘scales’ version 1.1.1

Help Pages

A B C D E G H I L M N O P R S T V W Y Z

-- A --

abs_area Area palettes (continuous)
alpha Modify colour transparency
area_pal Area palettes (continuous)
asn_trans Arc-sin square root transformation
atanh_trans Arc-tangent transformation

-- B --

boxcox_trans Box-Cox & modulus transformations
breaks_extended Automatic breaks for numeric axes
breaks_log Breaks for log axes
breaks_pretty Pretty breaks for date/times
breaks_width Equally spaced breaks
brewer_pal Colour Brewer palette (discrete)

-- C --

censor Out of bounds handling
col2hcl Modify standard R colour in hcl colour space.
colour_ramp Fast colour interpolation
col_bin Colour mapping
col_factor Colour mapping
col_numeric Colour mapping
col_quantile Colour mapping
comma Label numbers in decimal format (e.g. 0.12, 1,234)
comma_format Label numbers in decimal format (e.g. 0.12, 1,234)
ContinuousRange Mutable ranges
cscale Continuous scale

-- D --

date_format Label date/times
date_trans Transformation for dates (class Date)
dichromat_pal Dichromat (colour-blind) palette (discrete)
discard Out of bounds handling
DiscreteRange Mutable ranges
div_gradient_pal Diverging colour gradient (continuous).
dollar Label currencies ($100, $2.50, etc)
dollar_format Label currencies ($100, $2.50, etc)
dscale Discrete scale

-- E --

expand_range Expand a range with a multiplicative or additive constant
exp_trans Exponential transformation (inverse of log transformation)
extended_breaks Automatic breaks for numeric axes

-- G --

gradient_n_pal Arbitrary colour gradient palette (continuous)
grey_pal Grey scale palette (discrete)

-- H --

hms_trans Transformation for times (class hms)
hue_pal Hue palette (discrete)

-- I --

identity_pal Identity palette
identity_trans Identity transformation (do nothing)

-- L --

label_bytes Label bytes (1 kb, 2 MB, etc)
label_comma Label numbers in decimal format (e.g. 0.12, 1,234)
label_date Label date/times
label_date_short Label date/times
label_dollar Label currencies ($100, $2.50, etc)
label_math Label with mathematical annotations
label_number Label numbers in decimal format (e.g. 0.12, 1,234)
label_number_auto Label numbers, avoiding scientific notation where possible
label_number_si Label numbers with SI prefixes (2k, 1M, 5T etc)
label_ordinal Label ordinal numbers (1st, 2nd, 3rd, etc)
label_parse Label with mathematical annotations
label_percent Label percentages (2.5%, 50%, etc)
label_pvalue Label p-values (e.g. <0.001, 0.25, p >= 0.99)
label_scientific Label numbers with scientific notation (e.g. 1e05, 1.5e-02)
label_time Label date/times
label_wrap Label strings by wrapping across multiple lines
linetype_pal Line type palette (discrete)
log10_trans Log transformations
log1p_trans Log transformations
log2_trans Log transformations
logit_trans Probability transformation
log_breaks Breaks for log axes
log_trans Log transformations

-- M --

manual_pal Manual palette (discrete)
math_format Label with mathematical annotations
minor_breaks_n Minor breaks
minor_breaks_width Minor breaks
modulus_trans Box-Cox & modulus transformations
muted Mute standard colour

-- N --

number_format Label numbers in decimal format (e.g. 0.12, 1,234)

-- O --

oob Out of bounds handling
oob_censor Out of bounds handling
oob_censor_any Out of bounds handling
oob_discard Out of bounds handling
oob_keep Out of bounds handling
oob_squish Out of bounds handling
oob_squish_any Out of bounds handling
oob_squish_infinite Out of bounds handling
ordinal Label ordinal numbers (1st, 2nd, 3rd, etc)
ordinal_english Label ordinal numbers (1st, 2nd, 3rd, etc)
ordinal_format Label ordinal numbers (1st, 2nd, 3rd, etc)
ordinal_french Label ordinal numbers (1st, 2nd, 3rd, etc)
ordinal_spanish Label ordinal numbers (1st, 2nd, 3rd, etc)

-- P --

parse_format Label with mathematical annotations
percent Label percentages (2.5%, 50%, etc)
percent_format Label percentages (2.5%, 50%, etc)
pretty_breaks Pretty breaks for date/times
probability_trans Probability transformation
probit_trans Probability transformation
pseudo_log_trans Log transformations
pvalue Label p-values (e.g. <0.001, 0.25, p >= 0.99)
pvalue_format Label p-values (e.g. <0.001, 0.25, p >= 0.99)

-- R --

Range Mutable ranges
reciprocal_trans Reciprocal transformation
rescale Rescale continuous vector to have specified minimum and maximum
rescale.Date Rescale continuous vector to have specified minimum and maximum
rescale.dist Rescale continuous vector to have specified minimum and maximum
rescale.integer64 Rescale continuous vector to have specified minimum and maximum
rescale.logical Rescale continuous vector to have specified minimum and maximum
rescale.numeric Rescale continuous vector to have specified minimum and maximum
rescale.POSIXt Rescale continuous vector to have specified minimum and maximum
rescale_max Rescale numeric vector to have specified maximum
rescale_mid Rescale vector to have specified minimum, midpoint, and maximum
rescale_mid.Date Rescale vector to have specified minimum, midpoint, and maximum
rescale_mid.dist Rescale vector to have specified minimum, midpoint, and maximum
rescale_mid.integer64 Rescale vector to have specified minimum, midpoint, and maximum
rescale_mid.logical Rescale vector to have specified minimum, midpoint, and maximum
rescale_mid.numeric Rescale vector to have specified minimum, midpoint, and maximum
rescale_mid.POSIXt Rescale vector to have specified minimum, midpoint, and maximum
rescale_none Don't perform rescaling
rescale_pal Rescale palette (continuous)
reverse_trans Reverse transformation

-- S --

scientific Label numbers with scientific notation (e.g. 1e05, 1.5e-02)
scientific_format Label numbers with scientific notation (e.g. 1e05, 1.5e-02)
seq_gradient_pal Sequential colour gradient palette (continuous)
shape_pal Shape palette (discrete)
sqrt_trans Square-root transformation
squish Out of bounds handling
squish_infinite Out of bounds handling

-- T --

time_format Label date/times
time_trans Transformation for date-times (class POSIXt)
train_continuous Train (update) a continuous scale
train_discrete Train (update) a discrete scale

-- V --

viridis_pal Viridis palette

-- W --

wrap_format Label strings by wrapping across multiple lines

-- Y --

yj_trans Yeo-Johnson transformation

-- Z --

zero_range Determine if range of vector is close to zero, with a specified tolerance