scatter_hist: Scatter plot with marginal histograms

View source: R/graphs.R

scatter_histR Documentation

Scatter plot with marginal histograms

Description

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

Usage

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)

paulnorthrop/stat0002 documentation built on Oct. 10, 2024, 1:27 p.m.