This function plots a histogram of the data. There is also the choice to add the density, a boxplot and a scatterplot to the histogram.
edaplot(data,scatter=TRUE,box=TRUE, P.plot=TRUE, D.plot=TRUE,
P.main=paste("Histogram of",deparse(substitute(data))),
P.sub=NULL, P.xlab=deparse(substitute(data)), P.ylab=default, P.ann=par("ann"),
P.axes=TRUE, P.frame.plot=P.axes, P.log=FALSE, P.logfine=c(2,5,10), P.xlim=NULL,
P.cex.lab=1.4,B.range=1.5, B.notch=FALSE, B.outline=TRUE,
B.border=par("fg"), B.col=NULL, B.pch=par("pch"), B.cex=1, B.bg=NA,
H.breaks="Sturges", H.freq=TRUE, H.include.lowest=TRUE, H.right=TRUE,
H.density=NULL, H.angle=45, H.col=NULL, H.border=NULL, H.labels=FALSE,
S.pch=".", S.col=par("col"), S.bg=NA, S.cex=1, D.lwd=1,D.lty=1)
results of the histogram
results of the boxplot
data set
if TRUE the scatter plot is added
if TRUE a boxplot or boxplotlog is added
if it is plotted or just a list is computed
if TRUE the density is added
graphical parameters for the density, see plot
plots the y-axis with the ticker
if TRUE the x-axis is in log-scale
how fine the tickers are
further graphical parameters
parameters for boxplot and boxplotlog function, see boxplot and boxplotlog
parameters for histogram, see hist
graphical parameters for the shape of the points, see points
parameters for the density
Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/
First the histogram, boxplot/boxplotlog and density is calculate and then the plot is produced. The default is that histogram, boxplot, density trace and scatterplot is made.
C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.
data(chorizon)
Ba=chorizon[,"Ba"]
edaplot(Ba,H.freq=FALSE,box=TRUE,H.breaks=30,S.pch=3,S.cex=0.5,D.lwd=1.5,P.log=FALSE,
P.main="",P.xlab="Ba [mg/kg]",P.ylab="Density",B.pch=3,B.cex=0.5)
Run the code above in your browser using DataLab