EVOLUTION-MANAGER
Edit File: bpy.colors.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: blue-pink-yellow color scheme, which also prints well on...</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 bpy.colors {sp}"><tr><td>bpy.colors {sp}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> blue-pink-yellow color scheme, which also prints well on black/white printers </h2> <h3>Description</h3> <p> Create a vector of ‘n’ “contiguous” colors. </p> <h3>Usage</h3> <pre> bpy.colors(n = 100, cutoff.tails = 0.1, alpha = 1.0) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>n</code></td> <td> <p>number of colors (>= 1) to be in the palette</p> </td></tr> <tr valign="top"><td><code>cutoff.tails</code></td> <td> <p>tail fraction to be cut off on each side. If 0, this palette runs from black to white; by cutting off the tails, it runs from blue to yellow, which looks nicer. </p> </td></tr> <tr valign="top"><td><code>alpha</code></td> <td> <p>numeric; alpha transparency, 0 is fully transparent, 1 is opaque. </p> </td></tr> </table> <h3>Value</h3> <p> A character vector, ‘cv’, of color names. This can be used either to create a user-defined color palette for subsequent graphics by ‘palette(cv)’, a ‘col=’ specification in graphics functions or in ‘par’. </p> <h3>Note</h3> <p> This color map prints well on black-and-white printers. </p> <h3>Author(s)</h3> <p> unknown; the pallette was posted to gnuplot-info a few decades ago; R implementation Edzer Pebesma, <a href="mailto:edzer.pebesma@uni-muenster.de">edzer.pebesma@uni-muenster.de</a></p> <h3>See Also</h3> <p><a href="../../grDevices/html/palettes.html">rainbow</a>, <a href="../../grDevices/html/palettes.html">cm.colors</a></p> <h3>Examples</h3> <pre> bpy.colors(10) p <- expand.grid(x=1:30,y=1:30) p$z <- p$x + p$y coordinates(p) <- c("x", "y") gridded(p) <- TRUE image(p, col = bpy.colors(100), asp = 1) # require(lattice) # trellis.par.set("regions", list(col=bpy.colors())) # make this default pallette </pre> <hr /><div style="text-align: center;">[Package <em>sp</em> version 1.4-2 <a href="00Index.html">Index</a>]</div> </body></html>