plotbins: Plotting a heatmap for 2D data

View source: R/plot.bins.r

plotbinsR Documentation

Plotting a heatmap for 2D data

Description

Plotting a heatmap for 2D data

Usage

plotbins(
  x,
  y,
  n.x = 11,
  n.y = 11,
  xlim = range(x),
  ylim = range(y),
  freq = TRUE,
  text.cex = 1,
  ...
)

Arguments

x

a numeric vector

y

a numeric vector

n.x

number of bins for x

n.y

number of bins for y

xlim

limits for x

ylim

limits for y

freq

If TRUE, the number of data points in each bin is printed (if non zero)

text.cex

cex parameter for printing the frequencies

...

extra parameters for image

Details

plots a heatmap of discretized data

Examples

x <- rnorm(500)
y <- x + rnorm(500)
plotbins(x, y)


HervePerdry/M1SP documentation built on Dec. 16, 2024, 8:19 p.m.