This function is a customizable plot for the abundance and biomass lines from the ABC object.
# S4 method for abc
plot(x, xlim = c(0, ceiling(log(length(x@abc$Accum.Abund)))),
ylim = c(0, 100), yaxp = c(0, 100, 10), lty.bio = 'dotted',
lty.abu = 'solid', lwd = 2, col.bio = 'black', col.abu = 'black',
xlab = expression('Species Rank'~(Log[e]~Scale)),
ylab = 'Cumulative Dominance %', leg = TRUE, W = TRUE, col.pol = '#f5f5f5',
...)
an object of class abc
.
the x limits (x1, x2) of the plot, defaults from 0 to the maximum value of x (in a log scale).
the y limits (x1, x2) of the plot, defaults to c(0, 100)
a vector of the form c(y1, y2, n) giving the coordinates of the extreme tick marks and the number of intervals between tick-marks, defaults to c(0, 100, 10)
.
line type of the biomass curve, defaults to "dotted"
.
line type of the abundance curve, defaults to "solid"
.
the line width, a positive number, defaulting to 2.
the line color of the biomass curve, defaulting to "black"
.
the line color of the abundance curve, defaulting to "black"
.
a label for the x axis, defaults to expression('Species Rank'~(Log[e]~Scale))
.
a label for the y axis, defaults to "Cumulative Dominance %"
.
logical; if TRUE draws a legend at the bottomright
part of the plotting area, defaults to TRUE
.
logical; if TRUE draws the W statistics value at the topleft
part of the plotting area, defaults to TRUE
.
the polygon filling color, defaults to "#f5f5f5"
.
other graphical parameters, see par
for details.
Rodrigo Aluizio
The plot produces a two lines plot with a ln abscissa and uses the axis
function, so a complete customization (i.e. side
) of the axes is not possible at this moment.
Warwick, R.M. (1986). A new method for detecting pollution effects on marine macrobenthic communities. Marine Biology 92 (4), 557-562.
Warwick, R.M., & Clarke, K.R. (1994). Relearning the ABC: taxonomic changes and abundance/biomass relationships in disturbed benthic communities. Marine Biology 118 (4), 739-744.
data(NB)
MyABC <- abc(NB)
plot(MyABC)
Run the code above in your browser using DataLab