scales v0.1.0


Monthly downloads



by Hadley Wickham

Scale functions for graphics.

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

Functions in scales

Name Description
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.
No Results!

Last month downloads


Type Package
License MIT
LazyLoad yes
Collate 'bounds.r' 'breaks.r' 'colour-manip.r' 'date-time.r' 'documentation.r' 'formatter.r' 'full-seq.r' 'pal-area.r' 'pal-brewer.r' 'pal-dichromat.r' 'pal-gradient.r' 'pal-grey.r' 'pal-hue.r' 'pal-identity.r' 'pal-linetype.r' 'pal-manual.r' 'pal-rescale.r' 'pal-shape.r' 'range.r' 'scale-continuous.r' 'scale-discrete.r' 'scales.r' 'trans-date.r' 'trans-numeric.r' 'trans.r'
BuildManual yes
Packaged 2011-09-19 18:40:02 UTC; hadley
Repository CRAN
Date/Publication 2011-09-22 06:15:33

Include our badge in your README