scales v0.2.0

0

Monthly downloads

0th

Percentile

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
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 Format with using any arguments to 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 Pretty breaks. Uses default R break algorithm as implemented in pretty.
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.
No Results!

Last month downloads

Details

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 2012-02-27 14:08:38 UTC; hadley
Repository CRAN
Date/Publication 2012-02-27 18:58:46

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/scales)](http://www.rdocumentation.org/packages/scales)