EVOLUTION-MANAGER
Edit File: scale_x_num.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Scale that supports formatted numbers</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for scale_x_num {pillar}"><tr><td>scale_x_num {pillar}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Scale that supports formatted numbers</h2> <h3>Description</h3> <p><a href="https://lifecycle.r-lib.org/articles/stages.html#experimental"><img src="../help/figures/lifecycle-experimental.svg" alt='[Experimental]' /></a> </p> <p>This scale is used by default in ggplot2 with columns created with <code><a href="num.html">num()</a></code>. </p> <h3>Usage</h3> <pre> scale_x_num( ..., position = "bottom", guide = ggplot2::waiver(), rescaler = NULL, super = NULL ) scale_y_num(..., guide = ggplot2::waiver(), rescaler = NULL, super = NULL) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>...</code></td> <td> <p>Arguments passed on to <code><a href="../../ggplot2/html/continuous_scale.html">ggplot2::continuous_scale</a></code> </p> <dl> <dt><code>aesthetics</code></dt><dd><p>The names of the aesthetics that this scale works with.</p> </dd> <dt><code>scale_name</code></dt><dd><p>The name of the scale that should be used for error messages associated with this scale.</p> </dd> <dt><code>palette</code></dt><dd><p>A palette function that when called with a numeric vector with values between 0 and 1 returns the corresponding output values (e.g., <code><a href="../../scales/html/area_pal.html">scales::area_pal()</a></code>).</p> </dd> <dt><code>name</code></dt><dd><p>The name of the scale. Used as the axis or legend title. If <code>waiver()</code>, the default, the name of the scale is taken from the first mapping used for that aesthetic. If <code>NULL</code>, the legend title will be omitted.</p> </dd> <dt><code>breaks</code></dt><dd><p>One of: </p> <ul> <li> <p><code>NULL</code> for no breaks </p> </li> <li> <p><code>waiver()</code> for the default breaks computed by the <a href="../../scales/html/trans_new.html">transformation object</a> </p> </li> <li><p> A numeric vector of positions </p> </li> <li><p> A function that takes the limits as input and returns breaks as output (e.g., a function returned by <code><a href="../../scales/html/breaks_extended.html">scales::extended_breaks()</a></code>). Also accepts rlang <a href="../../rlang/html/as_function.html">lambda</a> function notation. </p> </li></ul> </dd> <dt><code>minor_breaks</code></dt><dd><p>One of: </p> <ul> <li> <p><code>NULL</code> for no minor breaks </p> </li> <li> <p><code>waiver()</code> for the default breaks (one minor break between each major break) </p> </li> <li><p> A numeric vector of positions </p> </li> <li><p> A function that given the limits returns a vector of minor breaks. Also accepts rlang <a href="../../rlang/html/as_function.html">lambda</a> function notation. </p> </li></ul> </dd> <dt><code>n.breaks</code></dt><dd><p>An integer guiding the number of major breaks. The algorithm may choose a slightly different number to ensure nice break labels. Will only have an effect if <code>breaks = waiver()</code>. Use <code>NULL</code> to use the default number of breaks given by the transformation.</p> </dd> <dt><code>labels</code></dt><dd><p>One of: </p> <ul> <li> <p><code>NULL</code> for no labels </p> </li> <li> <p><code>waiver()</code> for the default labels computed by the transformation object </p> </li> <li><p> A character vector giving labels (must be same length as <code>breaks</code>) </p> </li> <li><p> A function that takes the breaks as input and returns labels as output. Also accepts rlang <a href="../../rlang/html/as_function.html">lambda</a> function notation. </p> </li></ul> </dd> <dt><code>limits</code></dt><dd><p>One of: </p> <ul> <li> <p><code>NULL</code> to use the default scale range </p> </li> <li><p> A numeric vector of length two providing limits of the scale. Use <code>NA</code> to refer to the existing minimum or maximum </p> </li> <li><p> A function that accepts the existing (automatic) limits and returns new limits. Also accepts rlang <a href="../../rlang/html/as_function.html">lambda</a> function notation. Note that setting limits on positional scales will <strong>remove</strong> data outside of the limits. If the purpose is to zoom, use the limit argument in the coordinate system (see <code><a href="../../ggplot2/html/coord_cartesian.html">coord_cartesian()</a></code>). </p> </li></ul> </dd> <dt><code>oob</code></dt><dd><p>One of: </p> <ul> <li><p> Function that handles limits outside of the scale limits (out of bounds). Also accepts rlang <a href="../../rlang/html/as_function.html">lambda</a> function notation. </p> </li> <li><p> The default (<code><a href="../../scales/html/oob.html">scales::censor()</a></code>) replaces out of bounds values with <code>NA</code>. </p> </li> <li> <p><code><a href="../../scales/html/oob.html">scales::squish()</a></code> for squishing out of bounds values into range. </p> </li> <li> <p><code><a href="../../scales/html/oob.html">scales::squish_infinite()</a></code> for squishing infinite values into range. </p> </li></ul> </dd> <dt><code>expand</code></dt><dd><p>For position scales, a vector of range expansion constants used to add some padding around the data to ensure that they are placed some distance away from the axes. Use the convenience function <code><a href="../../ggplot2/html/expansion.html">expansion()</a></code> to generate the values for the <code>expand</code> argument. The defaults are to expand the scale by 5% on each side for continuous variables, and by 0.6 units on each side for discrete variables.</p> </dd> <dt><code>na.value</code></dt><dd><p>Missing values will be replaced with this value.</p> </dd> <dt><code>trans</code></dt><dd><p>For continuous scales, the name of a transformation object or the object itself. Built-in transformations include "asn", "atanh", "boxcox", "date", "exp", "hms", "identity", "log", "log10", "log1p", "log2", "logit", "modulus", "probability", "probit", "pseudo_log", "reciprocal", "reverse", "sqrt" and "time". </p> <p>A transformation object bundles together a transform, its inverse, and methods for generating breaks and labels. Transformation objects are defined in the scales package, and are called <code style="white-space: pre;"><name>_trans</code> (e.g., <code><a href="../../scales/html/boxcox_trans.html">scales::boxcox_trans()</a></code>). You can create your own transformation with <code><a href="../../scales/html/trans_new.html">scales::trans_new()</a></code>.</p> </dd> </dl> </td></tr> <tr valign="top"><td><code>guide, position</code></td> <td> <p>Passed on to <code><a href="../../ggplot2/html/continuous_scale.html">ggplot2::continuous_scale()</a></code></p> </td></tr> <tr valign="top"><td><code>rescaler, super</code></td> <td> <p>Must remain <code>NULL</code>.</p> </td></tr> </table> <hr /><div style="text-align: center;">[Package <em>pillar</em> version 1.8.1 <a href="00Index.html">Index</a>]</div> </body></html>