Learn R Programming

HistDAWass (version 1.0.8)

plot-MatH: Method plot for a matrix of histograms

Description

An overloading plot function for a MatH object. The method returns a graphical representation of the matrix of histograms.

Usage

# S4 method for MatH
plot(x, y = "missing", type = "HISTO", border = "black", angL = 330)

Arguments

x

a distributionH object

y

not used in this implementation

type

(optional) a string describing the type of plot, default="HISTO".
Other allowed types are
"DENS"=a density approximation,
"BOXPLOT"=l boxplot

border

(optional) a string the color of the border of the plot, default="black".

angL

(optional) angle of labels of rows (DEFAULT=330).

Examples

Run this code
plot(BLOOD) # plots BLOOD dataset
if (FALSE) {
plot(BLOOD, type = "HISTO", border = "blue") # plots a matrix of histograms
plot(BLOOD, type = "DENS", border = "blue") # plots a matrix of densities
plot(BLOOD, type = "BOXPLOT") # plots a  boxplots
}

Run the code above in your browser using DataLab