Last data update: 2014.03.03

R: Function for creating multiple xyloplots sharing a y-axis...
xyloplot.listR Documentation

Function for creating multiple xyloplots sharing a y-axis from lists of numeric vectors

Description

Function for creating multiple xyloplots sharing a y-axis from lists of numeric vectors

Usage

## S3 method for class 'list'
xyloplot(x, discrete = !is.numeric(unlist(x, use.names =
  FALSE)), breaks = if (discrete) seq(from = 0.5, by = 1, length.out =
  length(levels(factor(unlist(x, use.names = FALSE)))) + 1) else 30, ylim = if
  (discrete) {     range(breaks) } else {     if (length(breaks) == 1)         
  range(unlist(x, use.names = FALSE)) + c(-1, 1) * diff(range(unlist(x,
  use.names = FALSE)))/((breaks - 1) * 2)     else range(breaks) },
  space = 0.1, ylab = "Value", xlab = "Frequency density", ...)

Arguments

x

List of numeric vectors of values.

discrete

Logical value indicating whether to treat values as discrete (suitable for character vectors and factors) or continuous (suitable for numeric vectors).

breaks

A single positive integer value giving the number of histogram classes to evenly split the values in x into, or a numeric vector explicitly giving the boundaries of the histogram classes.

ylim

Limits of hte y-axis.

space

The proportion of the total distance on the x-axis allocated to each 'xylophone' which should be left blank.

ylab

Label for y-axis.

xlab

Label for x-axis.

...

Other arguments to be passed to plot.

Results