scatter: Scatter plot with five number summary

Description Usage Arguments Value Examples

View source: R/graphs.R

Description

Produces a scatter plot in which the axes are labelled with the respective five number summaries of the horizontal and vertical axis data.

Usage

1
scatter(x, y, ndec = 1, type = 6, na.rm = FALSE, ...)

Arguments

x

The argument x of plot.

y

The argument x of plot.

ndec

A numeric vector. The numbers of decimal places to which to round the five number summaries. If ndec is a scalar then this value is used for both axes.

type

Argument type used in the call to five_number to estimate the 25%, 50% and 75% quantiles.

na.rm

A logical scalar. If true, any NA and NaNs are removed before the sample quantiles are computed.

...

Further arguments to be passed to plot.

Value

Nothing, just the plot.

Examples

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

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