Last data update: 2014.03.03

R: Method for creating xyloplots
xyloplotR Documentation

Method for creating xyloplots

Description

Plots xylophone(s) for the input vector(s), provided either as a single vector or list of vectors. Either numeric vectors or character vectors/factors are admissible. If numeric vectors are provided, cut will be used to aggregate values, whereas if character vectors or factors are provided, each 'level' will get it's own 'key'. Note, that the height of the plot/length of the level labels may need adjusting to fit.

Usage

xyloplot(x, ...)

Arguments

x

Vector or list of vectors to use for creating xyloplots.

...

Other arguments to be passed to xyloplot.list and plot.

See Also

xyloplot.list xyloplot.numeric

Examples

xyloplot(rnorm(1000))
xyloplot(
 x=lapply(1:3, function(mean) rnorm(mean=mean, n=1000)), 
 breaks=20,
 col=rainbow(3), 
 main="title")
xyloplot(
 replicate(n=5, simplify=FALSE, 
  expr=factor(sample(c(0.01, 0.1, 0.2, 0.25, 0.5, 1), size=10, replace=TRUE))), 
 col=rainbow(5))
xyloplot(
 sample(c("goldfish","cat","dog","fish","mouse","giraffe"), 
 size=100, replace=TRUE))

Results