EVOLUTION-MANAGER
Edit File: cscale.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: Continuous scale</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 cscale {scales}"><tr><td>cscale {scales}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Continuous scale</h2> <h3>Description</h3> <p>Continuous scale </p> <h3>Usage</h3> <pre> cscale(x, palette, na.value = NA_real_, trans = identity_trans()) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>vector of continuous values to scale</p> </td></tr> <tr valign="top"><td><code>palette</code></td> <td> <p>palette to use. </p> <p>Built in palettes: <code><a href="area_pal.html">area_pal</a></code>, <code><a href="brewer_pal.html">brewer_pal</a></code>, <code><a href="dichromat_pal.html">dichromat_pal</a></code>, <code><a href="div_gradient_pal.html">div_gradient_pal</a></code>, <code><a href="gradient_n_pal.html">gradient_n_pal</a></code>, <code><a href="grey_pal.html">grey_pal</a></code>, <code><a href="hue_pal.html">hue_pal</a></code>, <code><a href="identity_pal.html">identity_pal</a></code>, <code><a href="linetype_pal.html">linetype_pal</a></code>, <code><a href="manual_pal.html">manual_pal</a></code>, <code><a href="rescale_pal.html">rescale_pal</a></code>, <code><a href="seq_gradient_pal.html">seq_gradient_pal</a></code>, <code><a href="shape_pal.html">shape_pal</a></code>, <code><a href="viridis_pal.html">viridis_pal</a></code></p> </td></tr> <tr valign="top"><td><code>na.value</code></td> <td> <p>value to use for missing values</p> </td></tr> <tr valign="top"><td><code>trans</code></td> <td> <p>transformation object describing the how to transform the raw data prior to scaling. Defaults to the identity transformation which leaves the data unchanged. </p> <p>Built in transformations: <code><a href="asn_trans.html">asn_trans</a></code>, <code><a href="atanh_trans.html">atanh_trans</a></code>, <code><a href="boxcox_trans.html">boxcox_trans</a></code>, <code><a href="date_trans.html">date_trans</a></code>, <code><a href="exp_trans.html">exp_trans</a></code>, <code><a href="hms_trans.html">hms_trans</a></code>, <code><a href="identity_trans.html">identity_trans</a></code>, <code><a href="log_trans.html">log10_trans</a></code>, <code><a href="log_trans.html">log1p_trans</a></code>, <code><a href="log_trans.html">log2_trans</a></code>, <code><a href="log_trans.html">log_trans</a></code>, <code><a href="probability_trans.html">logit_trans</a></code>, <code><a href="boxcox_trans.html">modulus_trans</a></code>, <code><a href="probability_trans.html">probability_trans</a></code>, <code><a href="probability_trans.html">probit_trans</a></code>, <code><a href="log_trans.html">pseudo_log_trans</a></code>, <code><a href="reciprocal_trans.html">reciprocal_trans</a></code>, <code><a href="reverse_trans.html">reverse_trans</a></code>, <code><a href="sqrt_trans.html">sqrt_trans</a></code>, <code><a href="time_trans.html">time_trans</a></code>, <code><a href="yj_trans.html">yj_trans</a></code>.</p> </td></tr> </table> <h3>Examples</h3> <pre> with(mtcars, plot(disp, mpg, cex = cscale(hp, rescale_pal()))) with(mtcars, plot(disp, mpg, cex = cscale(hp, rescale_pal(), trans = sqrt_trans()))) with(mtcars, plot(disp, mpg, cex = cscale(hp, area_pal()))) with(mtcars, plot(disp, mpg, pch = 20, cex = 5, col = cscale(hp, seq_gradient_pal("grey80", "black")))) </pre> <hr /><div style="text-align: center;">[Package <em>scales</em> version 1.1.1 <a href="00Index.html">Index</a>]</div> </body></html>