hist2D: 2D histogram.

Description Usage Arguments Author(s) Examples

Description

Creates a 2D version of a histogram. This function is used by the function "pj1pj2Matrix" found in the file pj1pj2 for directinal data.

Usage

1
2
3
4
hist2D(x, y = NULL, nx = 50, ny = nx, xlim = NULL, ylim = NULL,
  xbreaks = NULL, ybreaks = NULL, plot = TRUE, xlab = NULL,
  ylab = NULL, zlab = "Counts", colFn = heat, breaks = prettyInt,
  right = TRUE, ...)

Arguments

x

Numeric vectors.

y

same as x

nx

Approximate number of intervals along x and y axes.

ny

same as nx

xlim

Limit the range of data points considered.

ylim

same as xlim

xbreaks

Breakpoints between bins along x and y axes.

ybreaks

same as xbreaks

plot

Plot the histogram?

xlab

Axis labels.

ylab

same as ylab

zlab

Label for the color key.

colFn

Color key parameters; see makecmap.

breaks

see hist

right

see hist

...

Further arguments passed to colorgram.

Author(s)

Francisco Mendoza-Torres (mentofran@gmail.com)

Examples

1
2
3
4
ne <- 20
set.seed(12)
uve <- cbind(runif(ne), runif(ne))
print(hist2D(uve, nx = 3))

mathphysmx/empiricalDistribution documentation built on May 7, 2019, 10:55 p.m.