Learn R Programming

spreval (version 1.1.0)

eda.shape: Generate distribution plots of an array.

Description

Generate histogram, boxplot, density, and quartile plots.

Usage

eda.shape(x,qq=TRUE,main=NULL,xlab,...)

Arguments

x

numeric array.

qq

logical; for plotting quartile plot, default=TRUE.

main

character; main title for plots.

xlab

x axis label for histogram and density plots, y axis label for boxplot. If not provided, will default to name of object x.

...

additional graphical parameters to pass to the plot functions called within `eda.shape`.

Value

Four plots on one page [mfrow = c(2, 2)]- histogram, boxplot, density, and quartile.

Details

This function is modified from the SPlus version of the same name, see references. Additional graphical parameters passed to `eda.shape` are ignored if not applicable/accepted by all internally called plot functions to prevent warning messages and/or null plots. To suppress axis labeling pass ann=FALSE as additional argument.

References

TIBCO Spotfire S+ 8.2 2010. Guide to Statistics, vol. 1, p.124ff.

See Also

eda.stats,hist, boxplot,density, qqnorm

Examples

Run this code
# NOT RUN {
#generate and plot univariate normally distributed data
require(graphics)
x<-rnorm(25,1,0.25)
eda.shape(x) #defaults
#add main title, and pass additional parameters, "col" and
#"notch""for notched boxplot
eda.shape(x,main="my normal data",col="blue",notch=TRUE)
  
# }

Run the code above in your browser using DataLab