Learn R Programming

⚠️There's a newer version (1.3.0) of this package.Take me there.

scales (version 0.2.0)

Scale functions for graphics.

Description

Scales map data to aesthetics, and provide methods for automatically determining breaks and labels for axes and legends.

Copy Link

Version

Install

install.packages('scales')

Monthly Downloads

1,353,606

Version

0.2.0

License

MIT

Maintainer

Last Published

February 27th, 2012

Functions in scales (0.2.0)

asn_trans

Arc-sin square root transformation.
as.trans

Convert character string to transformer.
atanh_trans

Arc-tangent transformation.
exp_trans

Exponential transformation (inverse of log transformation).
Range

Mutable ranges.
cscale

Continuous scale.
date_trans

Transformation for dates (class Date).
boxcox_trans

Box-Cox power transformation.
hue_pal

Hue palette (discrete).
alpha

Modify colour transparency. Vectorised in both colour and alpha.
discard

Discard any values outside of range.
scientific_format

Scientific formatter.
trans_range

Compute range of transformed values.
squish_infinite

Squish infinite values to range.
dichromat_pal

Dichromat (colour-blind) palette (discrete).
fullseq

Generate sequence of fixed size intervals covering range.
area_pal

Point area palette (continuous).
muted

Mute standard colour.
time_trans

Transformation for times (class POSIXt).
brewer_pal

Color Brewer palette (discrete).
seq_gradient_pal

Sequential colour gradient palette (continous).
identity_trans

Identity transformation (do nothing).
censor

Censor any values outside of range.
gradient_n_pal

Arbitrary colour gradient palette (continous).
reciprocal_trans

Reciprocal transformation.
date_breaks

Regularly spaced dates.
reverse_trans

Reverse transformation.
col2hcl

Modify standard R colour in hcl colour space.
grey_pal

Grey scale palette (discrete).
percent_format

Percent formatter: multiply by one hundred and display percent sign.
parse_format

Parse a text label to produce expressions for plotmath.
div_gradient_pal

Diverging colour gradient (continous).
date_format

Formatted dates.
squish

Squish values into range.
identity_pal

Identity palette.
expand_range

Expand a range with a multiplicative or additive constant.
package-scales

Generic plot scaling methods
trans_format

Format labels after transformation.
trans_new

Create a new transformation object.
format_format

rescale_none

Don't peform rescaling
log_breaks

Log breaks (integer breaks on log-transformed scales).
trans_breaks

Pretty breaks on transformed scale.
show_col

Show colours.
sqrt_trans

Square-root transformation.
linetype_pal

Line type palette (discrete).
zero_range

Determine if range of vector is FP 0.
rescale_pal

Rescale palette (continuous).
shape_pal

Shape palette (discrete).
probability_trans

Probability transformation.
cbreaks

Compute breaks for continuous scale.
pretty_breaks

rescale

Rescale numeric vector to have specified minimum and maximum.
math_format

Add arbitrary expression to a label. The symbol that will be replace by the label value is .x.
manual_pal

Manual palette (manual).
comma_format

Comma formatter: format number with commas separating thousands.
dollar_format

Currency formatter: round to nearest cent and display dollar sign.
rescale_mid

Rescale numeric vector to have specified minimum, midpoint, and maximum.
log_trans

Log transformation.
log1p_trans

Log plus one transformation.
dscale

Discrete scale.