Description Usage Arguments See Also Examples

Plots xylophone(s) [essentially vertical histograms] 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. A second vector or list of vectors can be provided as the `rhs`

argument. If so, ‘split’ xyloplots are created, with the left hand sides corresponding to distributions in `x`

and right hand sides corresponding to distributions in `rhs`

. Note that if `rhs`

is not null, it must have the same class as `x`

, and if it is a `list`

, it must be the same length as `x`

and it's elements must be the same class as those in `x`

.

1 |

`x` |
Vector or list of vectors to use for creating xyloplots. |

`rhs` |
If not |

`...` |
Other arguments to be passed to |

xyloplot.list xyloplot.numeric

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
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))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.