scatterhist: Scatterplot with marginal histograms

Description Usage Arguments Value Examples

View source: R/scatterhist.R

Description

Plot a scatterplot of bivariate data with histograms for the marginal distributions.

Usage

1
scatterhist(x, y = NULL, ...)

Arguments

x

a vector, matrix or data frame

y

if provided, a vector

...

additional arguments to be passed to the low level functions.

Value

None, just produces a plot.

Examples

1
2
3
x <- rnorm(200)
y <- 0.5*x + rnorm(200, 0, 0.1)
scatterhist(x, y)

luca-scr/smef documentation built on Feb. 22, 2022, 8:32 p.m.