EVOLUTION-MANAGER
Edit File: viridis_pal.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: Viridis palette (discrete)</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 viridis_pal {viridis}"><tr><td>viridis_pal {viridis}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Viridis palette (discrete)</h2> <h3>Description</h3> <p>Viridis palette (discrete) </p> <h3>Usage</h3> <pre> viridis_pal(alpha = 1, begin = 0, end = 1, direction = 1, option = "D") </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>alpha</code></td> <td> <p>pass through parameter to <code>viridis</code></p> </td></tr> <tr valign="top"><td><code>begin</code></td> <td> <p>The (corrected) hue in [0,1] at which the viridis colormap begins.</p> </td></tr> <tr valign="top"><td><code>end</code></td> <td> <p>The (corrected) hue in [0,1] at which the viridis colormap ends.</p> </td></tr> <tr valign="top"><td><code>direction</code></td> <td> <p>Sets the order of colors in the scale. If 1, the default, colors are ordered from darkest to lightest. If -1, the order of colors is reversed.</p> </td></tr> <tr valign="top"><td><code>option</code></td> <td> <p>A character string indicating the colormap option to use. Four options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), "viridis" (or "D", the default option) and "cividis" (or "E").</p> </td></tr> </table> <h3>Details</h3> <p>Here is an example of a 20-element palette: </p> <div style="text-align: center"><p><img src="../help/figures/sample-palette.png" style="width:474px;max-width:90%;" /></div> </p> <p>See <a href="../../viridisLite/html/viridis.html">viridis</a> for more information on the color scale. </p> <h3>Author(s)</h3> <p>Bob Rudis <a href="mailto:bob@rud.is">bob@rud.is</a> </p> <h3>Examples</h3> <pre> library(scales) show_col(viridis_pal()(10)) </pre> <hr /><div style="text-align: center;">[Package <em>viridis</em> version 0.5.1 <a href="00Index.html">Index</a>]</div> </body></html>