plot.smw {segRDA} | R Documentation |
Plot the dissimilarity profiles
Description
Plot results from smw
and dp
objects. The command is a shortcut for extracting and plotting SMW
resuts. Auxiliary arguments from extract
(i.e. sig
, z
, BPs
and seq.sig
) can be passed to plot.smw
. The auxilary method bgDP
is available for the returned dp
object when the argument bg
is not NULL (see Details).
Usage
## S3 method for class 'smw'
plot(x, w = NULL, sig = "z", z = 1.85, BPs = "max",
seq.sig = 3, w.effect = F, values = c("zscore", "diss"),
pchs = c(16, 16, 17), cols = c("black", "red", "blue"), bg = NULL,
bg_alpha = 0.1, wcols = "rainbow", legend = TRUE, ...)
## S3 method for class 'dp'
bgDP(dp)
Arguments
x |
An object of class |
w |
The window size from which results will be plotted. Only effective if |
sig |
Significance test for detecting dissimilarity values that differs significantly from those appearing in a random pattern. If
|
z |
The critical value for the significance of z-values. Defaults to |
BPs |
Defines if the breakpoints should be chosen as those sample positions corresponding to the maximum dissimilarity in a sequence of significant values ( |
seq.sig |
The maximum length of consecutive, significant values of dissimilarity that will be considered in defining the community breakpoints. Defaults to |
w.effect |
Logical, if |
values |
Character. |
pchs |
A numerical vector of the form |
cols |
Vector of length 3 specifying the colors of the plot in the same way as the pch argument. Defaults to |
bg |
Optional. Sets background colors according to the breakpoints. It can be expressed either by a vector of colors or by the name of a pallet function (e.g. |
bg_alpha |
Factor modifying the opacity alpha of the backgroud [0,1]. |
wcols |
Sets the colors for the window sizes (lines) when |
legend |
Logical. Should a default legend appear? |
... |
Further graphical parameters. |
dp |
An object of class |
Details
If bg
is not NULL
, the attribute params$bg
is added to the returned dp
. This attribute contains the sample colors used by the argument bg
. The auxilary method bgDP
can be used for accessing this color vector.
Value
The function returns invisibly an object of class "dp"
(see Details).
Author(s)
Danilo Candido Vieira
See Also
Examples
data(sim1)
sim1o<-OrdData(sim1$envi,sim1$comm)
ws20<-SMW(yo=sim1o$yo,ws=20)
pool<-SMW(yo=sim1o$yo,ws=c(20,30,40))
plot(ws20)
plot(pool, w.effect=TRUE)