plotDens | R Documentation |
Plot the density curves from a data frame, matrix, or vector. The mean density curve of the data combined is also shown.
plotDens(file, clrs=c("blue","red","green","magenta","navy"), ...)
file |
data frame, matrix, or vector of numeric values. |
clrs |
vector of colours. Patterns are repeated if the number
of fields exceed the length of |
... |
additional arguments for |
This function is designed primarily to give greater flexibility when viewing
results from the R-package BRugs
. Use plotDens
in conjunction with
samplesHistory("*",beg=0,plot=FALSE)
rather than samplesDensity
which calls plotDensity
.
Rowan Haigh, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
local(envir=.PBSmodEnv,expr={
oldpar = par(no.readonly=TRUE)
z <- data.frame(y1=rnorm(50,sd=2),y2=rnorm(50,sd=1),y3=rnorm(50,sd=.5))
plotDens(z,lwd=3)
par(oldpar)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.