Scale Functions for Visualization


[Up] [Top]

Documentation for package ‘scales’ version 1.0.0

Help Pages

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

package-scales-package Generic plot scaling methods

-- A --

abs_area Point area palette (continuous), with area proportional to value.
alpha Modify colour transparency. Vectorised in both colour and alpha.
area_pal Point area palette (continuous).
as.trans Convert character string to transformer.
asn_trans Arc-sin square root transformation.
atanh_trans Arc-tangent transformation.

-- B --

boxcox_trans Box-Cox & modulus transformations.
brewer_pal Colour Brewer palette (discrete).

-- C --

cbreaks Compute breaks for continuous scale.
censor Censor any values outside of range.
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 Number formatters
comma_format Number formatters
ContinuousRange Mutable ranges.
cscale Continuous scale.

-- D --

date_breaks Regularly spaced dates.
date_format Formatted dates and times.
date_trans Transformation for dates (class Date).
dichromat_pal Dichromat (colour-blind) palette (discrete).
discard Discard any values outside of range.
DiscreteRange Mutable ranges.
div_gradient_pal Diverging colour gradient (continuous).
dollar Currency formatter: round to nearest cent and display dollar sign.
dollar_format Currency formatter: round to nearest cent and display dollar sign.
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 Extended breaks. Uses Wilkinson's extended breaks algorithm as implemented in the 'labeling' package.

-- F --

format_format Format with using any arguments to 'format()'.

-- 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).
is.trans Create a new transformation object.

-- L --

linetype_pal Line type palette (discrete).
log10_trans Log transformation.
log1p_trans Log plus one transformation.
log2_trans Log transformation.
logit_trans Probability transformation.
log_breaks Log breaks (integer breaks on log-transformed scales).
log_trans Log transformation.

-- M --

manual_pal Manual palette (manual).
math_format Add arbitrary expression to a label. The symbol that will be replace by the label value is '.x'.
modulus_trans Box-Cox & modulus transformations.
muted Mute standard colour.

-- N --

number Number formatters
number_bytes Bytes formatter: convert to byte measurement and display symbol.
number_bytes_format Bytes formatter: convert to byte measurement and display symbol.
number_format Number formatters

-- O --

ordinal Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th) to numbers.
ordinal_english Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th) to numbers.
ordinal_format Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th) to numbers.
ordinal_french Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th) to numbers.
ordinal_spanish Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th) to numbers.

-- P --

package-scales Generic plot scaling methods
parse_format Parse a text label to produce expressions for plotmath.
percent Number formatters
percent_format Number formatters
pretty_breaks Pretty breaks. Uses default R break algorithm as implemented in 'pretty()'.
probability_trans Probability transformation.
probit_trans Probability transformation.
pseudo_log_trans Pseudo-log transformation
pvalue p-values formatter
pvalue_format p-values formatter

-- R --

Range Mutable ranges.
reciprocal_trans Reciprocal transformation.
regular_minor_breaks Minor breaks. Places minor breaks between major breaks.
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 --

scales Generic plot scaling methods
scientific Scientific formatter.
scientific_format Scientific formatter.
seq_gradient_pal Sequential colour gradient palette (continuous).
shape_pal Shape palette (discrete).
show_col Show colours.
sqrt_trans Square-root transformation.
squish Squish values into range.
squish_infinite Squish infinite values to range.

-- T --

time_format Formatted dates and times.
time_trans Transformation for date-times (class POSIXt).
train_continuous Train (update) a continuous scale
train_discrete Train (update) a discrete scale
trans Create a new transformation object.
trans_breaks Pretty breaks on transformed scale.
trans_format Format labels after transformation.
trans_new Create a new transformation object.
trans_range Compute range of transformed values.

-- U --

unit_format Number formatters

-- V --

viridis_pal Viridis palette

-- W --

wrap_format Wrap text to a specified width, adding newlines for spaces if text exceeds the width

-- Z --

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