Hist: Histograms with clusters

Description Usage Arguments Examples

View source: R/Hist.R

Description

Histograms with clusters

Usage

1
2
3
4
5
6
7
8
9
Hist(
  x,
  classes = NULL,
  plot = TRUE,
  col = 2:10,
  mode = c("classical", "cumsum", "density"),
  breaks = "Sturges",
  ...
)

Arguments

x

a vector, matrix or data.frame on which the histogram will be computed and ploted.

classes

vector of classes to color

plot

if FALSE, the histogram is only computed with no graphical output.

col

numeric color

mode

one of c("classical","cumsum","density")

breaks

by default: "Sturges"

...

further arguments and graphical parameters passed to plot.histogram and thence to title and axis.

Examples

1
2
3
x <- c(rnorm(50, 0, 1), rnorm(50, 1, 1))
classes <- rep(1:2, each = 50)
Hist(x, classes)

CorReg documentation built on Feb. 20, 2020, 5:07 p.m.