scales v0.3.0

0

Monthly downloads

0th

Percentile

by Hadley Wickham

Scale Functions for Visualization

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

Functions in scales

Name Description
train_continuous Train (update) a continuous scale
col_numeric Color mapping
boxcox_trans Box-Cox power transformation.
rescale_max Rescale numeric vector to have specified maximum.
gradient_n_pal Arbitrary colour gradient palette (continous).
sqrt_trans Square-root transformation.
reverse_trans Reverse transformation.
train_discrete Train (update) a discrete scale
grey_pal Grey scale palette (discrete).
scientific_format Scientific formatter.
log_trans Log transformation.
extended_breaks Extended breaks. Uses Wilkinson's extended breaks algorithm as implemented in the labeling package.
show_col Show colours.
identity_pal Identity palette.
div_gradient_pal Diverging colour gradient (continous).
colour_ramp Fast color interpolation
expand_range Expand a range with a multiplicative or additive constant.
cscale Continuous scale.
package-scales Generic plot scaling methods
col2hcl Modify standard R colour in hcl colour space.
atanh_trans Arc-tangent transformation.
dscale Discrete scale.
ordinal_format Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th) to numbers.
trans_new Create a new transformation object.
probability_trans Probability transformation.
rescale Rescale numeric vector to have specified minimum and maximum.
cbreaks Compute breaks for continuous scale.
identity_trans Identity transformation (do nothing).
as.trans Convert character string to transformer.
time_trans Transformation for times (class POSIXt).
comma_format Comma formatter: format number with commas separating thousands.
zero_range Determine if range of vector is close to zero, with a specified tolerance
percent_format Percent formatter: multiply by one hundred and display percent sign.
brewer_pal Color Brewer palette (discrete).
dollar_format Currency formatter: round to nearest cent and display dollar sign.
trans_format Format labels after transformation.
censor Censor any values outside of range.
linetype_pal Line type palette (discrete).
exp_trans Exponential transformation (inverse of log transformation).
manual_pal Manual palette (manual).
format_format Format with using any arguments to format.
fullseq Generate sequence of fixed size intervals covering range.
area_pal Point area palette (continuous).
rescale_pal Rescale palette (continuous).
trans_breaks Pretty breaks on transformed scale.
reciprocal_trans Reciprocal transformation.
shape_pal Shape palette (discrete).
wrap_format Wrap text to a specified width, adding newlines for spaces if text exceeds the width
hue_pal Hue palette (discrete).
math_format Add arbitrary expression to a label. The symbol that will be replace by the label value is .x.
squish Squish values into range.
pretty_breaks Pretty breaks. Uses default R break algorithm as implemented in pretty.
date_breaks Regularly spaced dates.
muted Mute standard colour.
unit_format Add units to the labels
dichromat_pal Dichromat (colour-blind) palette (discrete).
discard Discard any values outside of range.
Range-class Mutable ranges.
abs_area Point area palette (continuous), with area proportional to value.
date_format Formatted dates.
parse_format Parse a text label to produce expressions for plotmath.
date_trans Transformation for dates (class Date).
trans_range Compute range of transformed values.
alpha Modify colour transparency. Vectorised in both colour and alpha.
rescale_mid Rescale numeric vector to have specified minimum, midpoint, and maximum.
squish_infinite Squish infinite values to range.
asn_trans Arc-sin square root transformation.
log_breaks Log breaks (integer breaks on log-transformed scales).
log1p_trans Log plus one transformation.
rescale_none Don't peform rescaling
seq_gradient_pal Sequential colour gradient palette (continous).
No Results!

Last month downloads

Details

URL https://github.com/hadley/scales
BugReports https://github.com/hadley/scales/issues
LinkingTo Rcpp
License MIT + file LICENSE
LazyLoad yes
NeedsCompilation yes
Packaged 2015-08-24 18:41:17 UTC; hadley
Repository CRAN
Date/Publication 2015-08-25 00:48:31

Include our badge in your README

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