scatter_hist: Scatter plot with marginal histograms

Description Usage Arguments Value Examples

View source: R/graphs.R

Description

Produces a scatter plot in which the axes are supplemented by histograms of the marginal horizontal and vertical axis data.

Usage

1
scatter_hist(x, y, xbreaks = NULL, ybreaks = NULL, ...)

Arguments

x

The argument x of plot.

y

The argument x of plot.

xbreaks

A numeric vector. Optional argument breaks to hist when plotting the histogram on the horizontal axis.

ybreaks

A numeric vector. Optional argument breaks to hist when plotting the histogram on the vertical axis.

...

Further arguments to be passed to plot.

Value

Nothing, just the plot.

Examples

1
2
3
x <- rnorm(100)
y <- rnorm(100)
scatter_hist(x, y)

paulnorthrop/stat1004 documentation built on Nov. 17, 2019, 3:49 a.m.