Learn R Programming

forams (version 2.0-6)

plot.she: Custom plot function for SHE Analysis objects

Description

This function generates customizable graphics for objects of the class she.

Usage

# S4 method for she
plot(x, pch = 20, pcol = 'black', pcex = 1, pbg = 'black', lcol = 'black',
  lwd = 1, lty = 'dotted', ylab = expression('ln'~italic(E)), bty = 'l', ...)

Arguments

x

an object of class she.

pch

plotting 'character', i.e., symbol to use with the points, defaults to 20.

pcol

color code or name for plot symbols, defaults to "black".

pcex

character (or symbol) expansion: a numerical vector, defaults to 1.

pbg

background (fill) color for the open plot symbols given by pch=21:25, defaults to "black"

lcol

a specification for the default plotting color of the line, defaults to "black".

lwd

the line width, a positive number, defaulting to 1.

lty

the line type. Line types can either be specified as an integer (0=blank, 1=solid (default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings "blank", "solid", "dashed", "dotted", "dotdash", "longdash", or "twodash", where "blank" uses 'invisible lines' (i.e., does not draw them).

ylab

a label for the y axis, defaults to expression("ln" ~ italic(E)).

bty

box type drawn about the plot, defaults to "l". Other types will not reproduce ideally.

...

other parameters to be passed to plot.default.

Author

Rodrigo Aluizio

Details

The plot produces a line plot with points on a ln abscissa and uses the axis function, so a complete customization (i.e. side) of the axes is not possible at this moment.

References

Buzas, M.A. & Hayek, L.A.C. (1998). SHE analysis for biofacies identification. Journal of Foraminiferal Research 28 (3), 233-239.

Wilson, B., Dawe, R., Gopee, A., Grant, S., Kissoon, A., Young, T., Noon, C., McLean, A. & Singh, K. (2010). Determining Boundaries between Abundance Biozones Using Minimal Equipment. International Journal of Ecology 2010, 1-14.

Examples

Run this code
data(LF)
MySHE <- she(LF, "abun")
plot(MySHE)

Run the code above in your browser using DataLab