Package: scales 1.3.0.9000

Thomas Lin Pedersen

scales:Scale Functions for Visualization

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

Authors:Hadley Wickham [aut], Thomas Lin Pedersen [cre, aut], Dana Seidel [aut], Posit, PBC [cph, fnd]

scales_1.3.0.9000.tar.gz
scales_1.3.0.9000.zip(r-4.5)scales_1.3.0.9000.zip(r-4.4)scales_1.3.0.9000.zip(r-4.3)
scales_1.3.0.9000.tgz(r-4.4-any)scales_1.3.0.9000.tgz(r-4.3-any)
scales_1.3.0.9000.tar.gz(r-4.5-noble)scales_1.3.0.9000.tar.gz(r-4.4-noble)
scales_1.3.0.9000.tgz(r-4.4-emscripten)scales_1.3.0.9000.tgz(r-4.3-emscripten)
scales.pdf |scales.html
scales/json (API)
NEWS

# Installscales in R:
install.packages('scales',repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-lib/scales/issues

On CRAN:

ggplot2

189 exports 388 stars 18.99 score 11 dependencies 7280 dependents 104 mentions 951.7k downloads

Last updated 7 months agofrom:84560bf54e

Exports:abs_areaalphaarea_palas.transas.transformasinh_transasn_transatanh_transboxcox_transbreaks_extendedbreaks_logbreaks_prettybreaks_timespanbreaks_widthbrewer_palcbreakscensorcol_bincol_factorcol_numericcol_quantilecol2hclcolour_rampcommacomma_formatcompose_transContinuousRangecscalecut_long_scalecut_short_scalecut_sicut_time_scaledate_breaksdate_formatdate_transdemo_continuousdemo_datetimedemo_discretedemo_log10demo_timedemo_timespandichromat_paldiscardDiscreteRangediv_gradient_paldollardollar_formatdscaleexp_transexpand_rangeextended_breaksformat_formatfullseqgradient_n_palgrey_palhms_transhue_palidentity_palidentity_transis.transis.transformlabel_byteslabel_commalabel_currencylabel_datelabel_date_shortlabel_dollarlabel_loglabel_mathlabel_numberlabel_number_autolabel_number_silabel_ordinallabel_parselabel_percentlabel_pvaluelabel_scientificlabel_timelabel_timespanlabel_wraplinetype_pallog_breakslog_translog10_translog1p_translog2_translogit_transmanual_palmath_formatminor_breaks_nminor_breaks_widthmodulus_transmutednew_transformnumbernumber_bytesnumber_bytes_formatnumber_formatoob_censoroob_censor_anyoob_discardoob_keepoob_squishoob_squish_anyoob_squish_infiniteordinalordinal_englishordinal_formatordinal_frenchordinal_spanishpal_areapal_brewerpal_dichromatpal_div_gradientpal_gradient_npal_greypal_huepal_identitypal_linetypepal_manualpal_rescalepal_seq_gradientpal_shapepal_viridisparse_formatpercentpercent_formatpretty_breaksprobability_transprobit_transpseudo_log_transpvaluepvalue_formatRangereciprocal_transregular_minor_breaksrescalerescale_maxrescale_midrescale_nonerescale_palreverse_transscientificscientific_formatseq_gradient_palshape_palshow_colsqrt_transsquishsquish_infinitetime_formattime_transtimespan_transtrain_continuoustrain_discretetrans_breakstrans_formattrans_newtrans_rangetransform_asinhtransform_asntransform_atanhtransform_boxcoxtransform_composetransform_datetransform_exptransform_hmstransform_identitytransform_logtransform_log10transform_log1ptransform_log2transform_logittransform_modulustransform_probabilitytransform_probittransform_pseudo_logtransform_reciprocaltransform_reversetransform_sqrttransform_timetransform_timespantransform_yjtrim_to_domainunit_formatviridis_palwrap_formatyj_transzero_range

Dependencies:clicolorspacefarvergluelabelinglifecyclemunsellR6RColorBrewerrlangviridisLite

Readme and manuals

Help Manual

Help pageTopics
Modify colour transparencyalpha
Automatic breaks for numeric axesbreaks_extended extended_breaks
Breaks for log axesbreaks_log log_breaks
Pretty breaks for date/timesbreaks_pretty
Breaks for timespan databreaks_timespan
Equally spaced breaksbreaks_width
Colour mappingcol_bin col_factor col_numeric col_quantile
Modify standard R colour in hcl colour space.col2hcl
Fast colour interpolationcolour_ramp
Continuous scalecscale
Discrete scaledscale
Expand a range with a multiplicative or additive constantexpand_range
Label bytes (1 kB, 2 MB, etc)label_bytes
Label currencies ($100, €2.50, etc)label_currency
Label date/timeslabel_date label_date_short label_time label_timespan
Label numbers in log format (10^3, 10^6, etc)label_log
Label numbers in decimal format (e.g. 0.12, 1,234)label_comma label_number
Label numbers, avoiding scientific notation where possiblelabel_number_auto
Label ordinal numbers (1st, 2nd, 3rd, etc)label_ordinal ordinal_english ordinal_french ordinal_spanish
Label with mathematical annotationslabel_math label_parse
Label percentages (2.5%, 50%, etc)label_percent
Label p-values (e.g. <0.001, 0.25, p >= 0.99)label_pvalue
Label numbers with scientific notation (e.g. 1e05, 1.5e-02)label_scientific
Label strings by wrapping across multiple lineslabel_wrap
Minor breaksminor_breaks_n minor_breaks_width
Mute standard colourmuted
Out of bounds handlingcensor discard oob oob_censor oob_censor_any oob_discard oob_keep oob_squish oob_squish_any oob_squish_infinite squish squish_infinite
Area palettes (continuous)abs_area area_pal pal_area
Colour Brewer palette (discrete)brewer_pal pal_brewer
Dichromat (colour-blind) palette (discrete)dichromat_pal pal_dichromat
Diverging colour gradient (continuous).div_gradient_pal pal_div_gradient
Arbitrary colour gradient palette (continuous)gradient_n_pal pal_gradient_n
Grey scale palette (discrete)grey_pal pal_grey
Hue palette (discrete)hue_pal pal_hue
Identity paletteidentity_pal pal_identity
Line type palette (discrete)linetype_pal pal_linetype
Manual palette (discrete)manual_pal pal_manual
Rescale palette (continuous)pal_rescale rescale_pal
Sequential colour gradient palette (continuous)pal_seq_gradient seq_gradient_pal
Shape palette (discrete)pal_shape shape_pal
Viridis palettepal_viridis viridis_pal
Mutable rangesContinuousRange DiscreteRange Range
Rescale continuous vector to have specified minimum and maximumrescale rescale.AsIs rescale.Date rescale.difftime rescale.dist rescale.integer64 rescale.logical rescale.numeric rescale.POSIXt
Rescale numeric vector to have specified maximumrescale_max
Rescale vector to have specified minimum, midpoint, and maximumrescale_mid rescale_mid.AsIs rescale_mid.Date rescale_mid.dist rescale_mid.integer64 rescale_mid.logical rescale_mid.numeric rescale_mid.POSIXt
Don't perform rescalingrescale_none
Train (update) a continuous scaletrain_continuous
Train (update) a discrete scaletrain_discrete
Inverse Hyperbolic Sine transformationasinh_trans transform_asinh
Arc-sin square root transformationasn_trans transform_asn
Arc-tangent transformationatanh_trans transform_atanh
Box-Cox & modulus transformationsboxcox_trans modulus_trans transform_boxcox transform_modulus
Compose two or more transformations togethercompose_trans transform_compose
Transformation for dates (class Date)date_trans transform_date
Exponential transformation (inverse of log transformation)exp_trans transform_exp
Identity transformation (do nothing)identity_trans transform_identity
Log transformationslog10_trans log1p_trans log2_trans log_trans pseudo_log_trans transform_log transform_log10 transform_log1p transform_log2 transform_pseudo_log
Probability transformationlogit_trans probability_trans probit_trans transform_logit transform_probability transform_probit
Reciprocal transformationreciprocal_trans transform_reciprocal
Reverse transformationreverse_trans transform_reverse
Square-root transformationsqrt_trans transform_sqrt
Transformation for date-times (class POSIXt)time_trans transform_time
Transformation for times (class hms)hms_trans timespan_trans transform_hms transform_timespan
Yeo-Johnson transformationtransform_yj yj_trans
Determine if range of vector is close to zero, with a specified tolerancezero_range