clpng: Plot a COLOURlovers object

Description Usage Arguments Details Value Author(s) Examples

View source: R/clpng.r

Description

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

Usage

1
2
3
4
5
6
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## 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)

colourlovers documentation built on Jan. 13, 2021, 11:52 a.m.