edaplot: EDA-plot for data

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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.

Usage

1
2
3
4
5
6
7
8
9
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)

Arguments

data

data set

scatter

if TRUE the scatter plot is added

box

if TRUE a boxplot or boxplotlog is added

P.plot

if it is plotted or just a list is computed

D.plot

if TRUE the density is added

P.main, P.sub,P.xlab,P.ylab,P.ann

graphical parameters for the density, see plot

P.axes,P.frame.plot

plots the y-axis with the ticker

P.log

if TRUE the x-axis is in log-scale

P.logfine

how fine the tickers are

P.xlim,P.cex.lab

further graphical parameters

B.range, B.notch, B.outline,B.border, B.col, B.pch,B.cex, B.bg

parameters for boxplot and boxplotlog function, see boxplot and boxplotlog

H.breaks, H.freq,H.include.lowest, H.right,H.density,H.angle,H.col,H.border,H.labels

parameters for histogram, see hist

S.pch, S.col,S.bg,S.cex

graphical parameters for the shape of the points, see points

D.lwd, D.lty

parameters for the density

Details

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.

Value

H

results of the histogram

B

results of the boxplot

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/

References

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.

See Also

plot,boxplot, edaplotlog, hist, points

Examples

1
2
3
4
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)

Example output

Loading required package: geoR
--------------------------------------------------------------
 Analysis of Geostatistical Data
 For an Introduction to geoR go to http://www.leg.ufpr.br/geoR
 geoR version 1.7-5.2.1 (built on 2016-05-02) is now loaded
--------------------------------------------------------------

Loading required package: sgeostat
Warning messages:
1: no DISPLAY variable so Tk is not available 
2: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
3: 'rgl_init' failed, running with rgl.useNULL = TRUE 
4: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

StatDA documentation built on March 13, 2020, 2:42 a.m.

Related to edaplot in StatDA...