scales: Scale Functions for Visualization
Version 0.4.1

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

Browse man pages Browse package API and functions Browse package files

AuthorHadley Wickham [aut, cre], RStudio [cph]
Date of publication2016-11-09 18:28:56
MaintainerHadley Wickham <hadley@rstudio.com>
LicenseMIT + file LICENSE
Version0.4.1
URL https://github.com/hadley/scales
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("scales")

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...
date_breaks: Regularly spaced dates.
date_format: Formatted dates.
date_trans: Transformation for dates (class Date).
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_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...

Functions

ContinuousRange Man page
DiscreteRange Man page
Range Man page
Range-class Man page
abs_area Man page Source code
alpha Man page Source code
area_pal Man page Source code
as.trans Man page Source code
asn_trans Man page Source code
atanh_trans Man page Source code
boxcox_trans Man page Source code
brewer_pal Man page Source code
calcLevels Source code
cbreaks Man page Source code
ceiling_date Source code
ceiling_time Source code
censor Man page Source code
clevels Source code
col2hcl Man page Source code
col_bin Man page Source code
col_factor Man page Source code
col_numeric Man page Source code
col_quantile Man page Source code
colour_ramp Man page Source code
comma Man page Source code
comma_format Man page Source code
cscale Source code
date_breaks Man page Source code
date_format Man page Source code
date_trans Man page Source code
dichromat_pal Source code
dichromat_schemes Source code
discard Man page Source code
discrete_range Source code
div_gradient_pal Man page Source code
doColorRamp Source code
dollar Man page
dollar_format Man page Source code
dscale Man page Source code
exp_trans Man page Source code
expand_range Man page Source code
extended_breaks Man page Source code
filterNA Source code
filterRGB Source code
filterRange Source code
filterZeroLength Source code
floor_date Source code
floor_time Source code
format_format Man page Source code
from_date Source code
fullseq Man page Source code
fullseq.Date Source code
fullseq.POSIXt Source code
fullseq.numeric Source code
getBins Source code
getLevels Source code
gradient_n_pal Man page Source code
grey_pal Man page Source code
hms_trans Man page Source code
hue_pal Man page Source code
identity_pal Man page Source code
identity_trans Man page Source code
is.trans Source code
linetype_pal Man page Source code
log10_trans Man page Source code
log1p_trans Man page Source code
log2_trans Man page Source code
log_breaks Man page Source code
log_trans Man page Source code
logit_trans Man page Source code
manual_pal Man page Source code
map_continuous Source code
map_discrete Source code
math_format Man page Source code
muted Man page Source code
needs_cents Source code
ordinal Man page Source code
ordinal_format Man page Source code
package-scales Man page
package-scales-package Man page
pal_name Source code
parse_format Man page Source code
parse_unit_spec Source code
percent Man page
percent_format Man page Source code
precision Source code
pretty_breaks Man page Source code
print.trans Source code
probability_trans Man page Source code
probit_trans Man page Source code
reciprocal_trans Man page Source code
rescale Man page Source code
rescale_max Man page Source code
rescale_mid Man page Source code
rescale_none Man page Source code
rescale_pal Man page Source code
reverse_trans Man page Source code
rgbToLab Source code
rgbToXyz Source code
safePaletteFunc Source code
scales Man page
scientific Man page Source code
scientific_format Man page Source code
seealso Source code
seealso_pal Source code
seealso_trans Source code
seq_gradient_pal Man page Source code
shape_pal Man page Source code
show_col Man page Source code
sqrt_trans Man page Source code
squish Man page Source code
squish_infinite Man page Source code
time_breaks Source code
time_trans Man page Source code
toPaletteFunc Source code
toPaletteFunc.character Source code
toPaletteFunc.function Source code
toPaletteFunc.matrix Source code
to_date Source code
train_continuous Man page Source code
train_discrete Man page Source code
trans_breaks Man page Source code
trans_format Man page Source code
trans_new Source code
trans_range Man page Source code
unit_format Man page Source code
withColorAttr Source code
wrap_format Man page Source code
zero_range Man page Source code

Files

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