scales: Scale Functions for Visualization

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

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
https://github.com/hadley/scales

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...

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

abs_area Man page
alpha Man page
area_pal Man page
asn_trans Man page
as.trans Man page
atanh_trans Man page
boxcox_trans Man page
brewer_pal Man page
cbreaks Man page
censor Man page
col2hcl Man page
col_bin Man page
col_factor Man page
col_numeric Man page
colour_ramp Man page
col_quantile Man page
comma Man page
comma_format Man page
ContinuousRange Man page
date_breaks Man page
date_format Man page
date_trans Man page
discard Man page
DiscreteRange Man page
div_gradient_pal Man page
dollar Man page
dollar_format Man page
dscale Man page
expand_range Man page
exp_trans Man page
extended_breaks Man page
format_format Man page
fullseq Man page
gradient_n_pal Man page
grey_pal Man page
hms_trans Man page
hue_pal Man page
identity_pal Man page
identity_trans Man page
linetype_pal Man page
log10_trans Man page
log1p_trans Man page
log2_trans Man page
log_breaks Man page
logit_trans Man page
log_trans Man page
manual_pal Man page
math_format Man page
muted Man page
ordinal Man page
ordinal_format Man page
package-scales Man page
package-scales-package Man page
parse_format Man page
percent Man page
percent_format Man page
pretty_breaks Man page
probability_trans Man page
probit_trans Man page
Range Man page
Range-class Man page
reciprocal_trans Man page
rescale Man page
rescale_max Man page
rescale_mid Man page
rescale_none Man page
rescale_pal Man page
reverse_trans Man page
scales Man page
scientific Man page
scientific_format Man page
seq_gradient_pal Man page
shape_pal Man page
show_col Man page
sqrt_trans Man page
squish Man page
squish_infinite Man page
time_trans Man page
train_continuous Man page
train_discrete Man page
trans_breaks Man page
trans_format Man page
trans_range Man page
unit_format Man page
wrap_format Man page
zero_range Man page

Files

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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.