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

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

x <- rnorm(100)
y <- rnorm(100)
scatter_hist(x, y)