plot.dissimilarities {analogue} | R Documentation |
Produces a plot of the distribution of the extracted dissimilarities and a reference normal distribution with comparable mean and sd.
## S3 method for class 'dissimilarities': plot(x, prob = 0.05, legend = TRUE, n.rnorm = 1e+05, col = "black", col.ref = "red", lty = "solid", lty.quant = "dotted", xlab = NULL, ylab = NULL, main = NULL, sub = NULL, ...)
x |
an object of class "dissimilarities" . |
prob |
numeric; density probability defining the threshold for close modern analogues. |
legend |
logical; draw a legend on the plotted figure? |
n.rnorm |
numeric; number of random normal deviates for reference line. |
col, col.ref |
colours for the dissimilarity and reference density functions drawn. |
lty, lty.quant |
line types for the dissimilarity and reference density functions drawn. |
xlab, ylab |
character; x- and y-axis labels. |
main, sub |
character; main and subtitle for the plot. |
... |
graphical arguments passed to other graphics functions. |
A plot on the currently active device.
Gavin L. Simpson
## continue the RLGH example from ?join example(join) ## analog matching between SWAP and RLGH core swap.analog <- analog(swapdiat, rlgh, method = "chord") ## compare training set dissimilarities with normals ## and derive cut-offs swap.dissim <- dissim(swap.analog) plot(swap.dissim)