clpng | R Documentation |
Plot a color, palette, or pattern color pie or PNG image in a plotting device
clpng(x, ask = TRUE, ...) clpie(x, ask = TRUE, ...) ## S3 method for class 'clcolor' plot(x, type = "png", ...)
x |
A colourlovers color, palette, or pattern object. |
ask |
A boolean indicating if plots should be presented interactively
or all at once (default is |
... |
Ignored. |
type |
One of “png” (the default) or “pie”. |
Plot a colourlovers PNG image in a new plotting window.
The x
object is invisibly returned.
Thomas J. Leeper
## Not run: # Plot a color clpng co <- clcolor(rgb(0, 0, 1)) plot(co) # Plot a pattern clpng p <- clpattern('1451') plot(p) clpng(p) # Plot colors from a palette p <- clpalette('113451') plot(p, type = 'pie') clpie(p) # Plot multiple palettes (interactively) p <- clpalettes('top') plot(p) # PNG images plot(p, type = 'pie') # pie chart swatches ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.