clpng {colourlovers}R Documentation

Plot a COLOURlovers object

Description

Plot a color, palette, or pattern color pie or PNG image in a plotting device

Usage

clpng(x, ask = TRUE, ...)

clpie(x, ask = TRUE, ...)

## S3 method for class 'clcolor'
plot(x, type = "png", ...)

Arguments

x

A colourlovers color, palette, or pattern object.

ask

A boolean indicating if plots should be presented interactively or all at once (default is FALSE).

...

Ignored.

type

One of “png” (the default) or “pie”.

Details

Plot a colourlovers PNG image in a new plotting window.

Value

The x object is invisibly returned.

Author(s)

Thomas J. Leeper

Examples

## 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)


[Package colourlovers version 0.3.6 Index]