Learn R Programming

colourlovers (version 0.3.6)

clpng: 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 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”.

Value

The x object is invisibly returned.

Details

Plot a colourlovers PNG image in a new plotting window.

Examples

Run this code
# 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
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab