scales: Scale Functions for Visualization

Share:

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

Author
Hadley Wickham [aut, cre], RStudio [cph]
Date of publication
2016-11-09 18:28:56
Maintainer
Hadley Wickham <hadley@rstudio.com>
License
MIT + file LICENSE
Version
0.4.1
URLs

View on CRAN

Man pages

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

Files in this package

scales
scales/tests
scales/tests/testthat.R
scales/tests/testthat
scales/tests/testthat/test-manual-pal.R
scales/tests/testthat/test-zero-range.r
scales/tests/testthat/test-colour-ramp.R
scales/tests/testthat/test-alpha.r
scales/tests/testthat/test-formatter.r
scales/tests/testthat/test-colors.r
scales/tests/testthat/test-scale.r
scales/tests/testthat/test-trans.r
scales/tests/testthat/test-breaks-log.r
scales/tests/testthat/test-discrete.R
scales/tests/testthat/test-trans-date.r
scales/tests/testthat/test-breaks-extended.R
scales/tests/testthat/test-rescale.R
scales/tests/testthat/test-bounds.r
scales/tests/testthat/test-range.r
scales/src
scales/src/colors.cpp
scales/src/RcppExports.cpp
scales/NAMESPACE
scales/NEWS.md
scales/R
scales/R/pal-manual.r
scales/R/pal-brewer.r
scales/R/breaks.r
scales/R/scale-discrete.r
scales/R/colour-manip.r
scales/R/pal-hue.r
scales/R/pal-area.r
scales/R/trans.r
scales/R/date-time.r
scales/R/trans-numeric.r
scales/R/pal-shape.r
scales/R/pal-rescale.r
scales/R/bounds.r
scales/R/range.r
scales/R/pal-dichromat.r
scales/R/trans-date.r
scales/R/colour-mapping.r
scales/R/RcppExports.R
scales/R/pal-identity.r
scales/R/documentation.r
scales/R/full-seq.r
scales/R/scales.r
scales/R/formatter.r
scales/R/pal-linetype.r
scales/R/pal-gradient.r
scales/R/pal-grey.r
scales/R/scale-continuous.r
scales/README.md
scales/MD5
scales/build
scales/build/partial.rdb
scales/DESCRIPTION
scales/man
scales/man/cscale.Rd
scales/man/boxcox_trans.Rd
scales/man/grey_pal.Rd
scales/man/linetype_pal.Rd
scales/man/show_col.Rd
scales/man/manual_pal.Rd
scales/man/trans_range.Rd
scales/man/date_format.Rd
scales/man/date_breaks.Rd
scales/man/trans_breaks.Rd
scales/man/hms_trans.Rd
scales/man/train_discrete.Rd
scales/man/math_format.Rd
scales/man/col2hcl.Rd
scales/man/asn_trans.Rd
scales/man/probability_trans.Rd
scales/man/colour_ramp.Rd
scales/man/comma_format.Rd
scales/man/sqrt_trans.Rd
scales/man/wrap_format.Rd
scales/man/identity_trans.Rd
scales/man/log_trans.Rd
scales/man/log1p_trans.Rd
scales/man/log_breaks.Rd
scales/man/rescale_none.Rd
scales/man/squish_infinite.Rd
scales/man/censor.Rd
scales/man/dscale.Rd
scales/man/discard.Rd
scales/man/rescale_max.Rd
scales/man/as.trans.Rd
scales/man/muted.Rd
scales/man/reciprocal_trans.Rd
scales/man/exp_trans.Rd
scales/man/seq_gradient_pal.Rd
scales/man/scientific_format.Rd
scales/man/unit_format.Rd
scales/man/extended_breaks.Rd
scales/man/shape_pal.Rd
scales/man/div_gradient_pal.Rd
scales/man/alpha.Rd
scales/man/ordinal_format.Rd
scales/man/identity_pal.Rd
scales/man/area_pal.Rd
scales/man/train_continuous.Rd
scales/man/brewer_pal.Rd
scales/man/fullseq.Rd
scales/man/cbreaks.Rd
scales/man/rescale_mid.Rd
scales/man/time_trans.Rd
scales/man/rescale.Rd
scales/man/col_numeric.Rd
scales/man/expand_range.Rd
scales/man/atanh_trans.Rd
scales/man/hue_pal.Rd
scales/man/pretty_breaks.Rd
scales/man/rescale_pal.Rd
scales/man/dichromat_pal.Rd
scales/man/gradient_n_pal.Rd
scales/man/reverse_trans.Rd
scales/man/trans_format.Rd
scales/man/date_trans.Rd
scales/man/squish.Rd
scales/man/package-scales.Rd
scales/man/percent_format.Rd
scales/man/zero_range.Rd
scales/man/format_format.Rd
scales/man/Range-class.Rd
scales/man/dollar_format.Rd
scales/man/trans_new.Rd
scales/man/abs_area.Rd
scales/man/parse_format.Rd
scales/LICENSE