Rdocumentation
powered by
Learn R Programming
⚠️
There's a newer version (1.3.0) of this package.
Take me there.
scales (version 0.1.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
Link to current version
Version
Version
1.3.0
1.2.1
1.2.0
0.4.1
0.4.0
0.3.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
Install
install.packages('scales')
Monthly Downloads
1,353,606
Version
0.1.0
License
MIT
Maintainer
Hadley Wickham
Last Published
September 22nd, 2011
Functions in scales (0.1.0)
Search all functions
atanh_trans
Arc-tangent transformation.
censor
Censor any values outside of range.
format_format
Format with using any arguments to
format
.
date_trans
Transformation for dates (class Date).
Range
Mutable ranges.
dichromat_pal
Dichromat (colour-blind) palette (discrete).
trans_breaks
Pretty breaks on transformed scale.
trans_range
Compute range of transformed values.
alpha
Modify colour transparency. Vectorised in both colour and alpha.
seq_gradient_pal
Sequential colour gradient palette (continous).
area_pal
Point area palette (continuous).
zero_range
Determine if range of vector is FP 0.
cbreaks
Compute breaks for continuous scale.
parse_format
Parse a text label to produce expressions for plotmath.
manual_pal
Manual palette (manual).
scientific_format
Scientific formatter.
discard
Discard any values outside of range.
rescale_pal
Rescale palette (continuous).
brewer_pal
Color Brewer palette (discrete).
asn_trans
Arc-sin square root transformation.
identity_trans
Identity transformation (do nothing).
log_breaks
Log breaks (integer breaks on log-transformed scales).
fullseq
Generate sequence of fixed size intervals covering range.
linetype_pal
Line type palette (discrete).
div_gradient_pal
Diverging colour gradient (continous).
cscale
Continuous scale.
comma_format
Comma formatter: format number with commas separating thousands.
sqrt_trans
Square-root transformation.
grey_pal
Grey scale palette (discrete).
reverse_trans
Reverse transformation.
percent_format
Percent formatter: multiply by one hundred and display percent sign.
expand_range
Expand a range with a multiplicative or additive constant.
time_trans
Transformation for times (class POSIXt).
math_format
Add arbitrary expression to a label. The symbol that will be replace by the label value is
.x
.
col2hcl
Modify standard R colour in hcl colour space.
log1p_trans
Log plus one transformation.
date_breaks
Regularly spaced dates.
probability_trans
Probability transformation.
shape_pal
Shape palette (discrete).
squish
Squish values into range.
identity_pal
Identity palette.
rescale
Rescale numeric vector to have specified minimum and maximum.
rescale_mid
Rescale numeric vector to have specified minimum, midpoint, and maximum.
boxcox_trans
Box-Cox power transformation.
hue_pal
Hue palette (discrete).
rescale_none
Don't peform rescaling
package-scales
Generic plot scaling methods
exp_trans
Exponential transformation (inverse of log transformation).
muted
Mute standard colour.
log_trans
Log transformation.
reciprocal_trans
Reciprocal transformation.
gradient_n_pal
Arbitrary colour gradient palette (continous).
trans_new
Create a new transformation object.
as.trans
Convert character string to transformer.
dollar_format
Currency formatter: round to nearest cent and display dollar sign.
squish_infinite
Squish infinite values to range.
trans_format
Format labels after transformation.
date_format
Formatted dates.
dscale
Discrete scale.
pretty_breaks
Pretty breaks. Uses default R break algorithm as implemented in
pretty
.
show_col
Show colours.