Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

edaplotlog

Edaplot for logtransformed data


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

edaplotlog(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, B.log = FALSE,
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

B.log

if TRUE the function boxplotlog is used instead of boxplot

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

parameters for histogram, see hist

H.freq

uses the number of data points in the range

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 boxplotlog

Author(s)

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

Examples

data(chorizon)
Ba=chorizon[,"Ba"]
edaplotlog(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,B.log=TRUE)

StatDA

Statistical Analysis for Environmental Data

v1.7.4
GPL (>= 3)
Authors
Peter Filzmoser
Initial release
2020-03-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.