scales v0.2.1

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
brewer_pal Color Brewer palette (discrete).
area_pal Point area palette (continuous).
exp_trans Exponential transformation (inverse of log transformation).
manual_pal Manual palette (manual).
log1p_trans Log plus one transformation.
sqrt_trans Square-root transformation.
scientific_format Scientific formatter.
cscale Continuous scale.
trans_new Create a new transformation object.
trans_format Format labels after transformation.
zero_range Determine if range of vector is FP 0.
dollar_format Currency formatter: round to nearest cent and display dollar sign.
percent_format Percent formatter: multiply by one hundred and display percent sign.
linetype_pal Line type palette (discrete).
dichromat_pal Dichromat (colour-blind) palette (discrete).
boxcox_trans Box-Cox power transformation.
identity_pal Identity palette.
seq_gradient_pal Sequential colour gradient palette (continous).
grey_pal Grey scale palette (discrete).
comma_format Comma formatter: format number with commas separating thousands.
expand_range Expand a range with a multiplicative or additive constant.
rescale_pal Rescale palette (continuous).
cbreaks Compute breaks for continuous scale.
extended_breaks Extended breaks. Uses Wilkinon's extended breaks algorithm as implemented in the labeling package.
reverse_trans Reverse transformation.
alpha Modify colour transparency. Vectorised in both colour and alpha.
atanh_trans Arc-tangent transformation.
date_format Formatted dates.
censor Censor any values outside of range.
col2hcl Modify standard R colour in hcl colour space.
date_breaks Regularly spaced dates.
hue_pal Hue palette (discrete).
gradient_n_pal Arbitrary colour gradient palette (continous).
squish_infinite Squish infinite values to range.
squish Squish values into range.
dscale Discrete scale.
fullseq Generate sequence of fixed size intervals covering range.
show_col Show colours.
package-scales Generic plot scaling methods
parse_format Parse a text label to produce expressions for plotmath.
date_trans Transformation for dates (class Date).
probability_trans Probability transformation.
trans_range Compute range of transformed values.
pretty_breaks Pretty breaks. Uses default R break algorithm as implemented in pretty.
rescale Rescale numeric vector to have specified minimum and maximum.
time_trans Transformation for times (class POSIXt).
reciprocal_trans Reciprocal transformation.
discard Discard any values outside of range.
identity_trans Identity transformation (do nothing).
asn_trans Arc-sin square root transformation.
log_trans Log transformation.
as.trans Convert character string to transformer.
format_format Format with using any arguments to format.
Range Mutable ranges.
rescale_none Don't peform rescaling
trans_breaks Pretty breaks on transformed scale.
log_breaks Log breaks (integer breaks on log-transformed scales).
rescale_mid Rescale numeric vector to have specified minimum, midpoint, and maximum.
math_format Add arbitrary expression to a label. The symbol that will be replace by the label value is .x.
muted Mute standard colour.
div_gradient_pal Diverging colour gradient (continous).
shape_pal Shape palette (discrete).
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-05-08 00:39:29 UTC; hadley
Repository CRAN
Date/Publication 2012-05-08 04:07:13

Include our badge in your README

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