dotPlotStack: Add a Stacked Dot Plot to an Existing Plot

View source: R/dotPlotStack.R

dotPlotStackR Documentation

Add a Stacked Dot Plot to an Existing Plot

Description

Add a stacked dot plot to an existing plot. The locations for the points in the dot plot are returned from the function in a list.

Usage

dotPlotStack(x, radius = 1, seed = 1, addDots = TRUE, ...)

Arguments

x

A vector of numerical observations for the dot plot.

radius

The approximate distance that should separate each point.

seed

A random seed (integer). Different values will produce different variations.

addDots

Indicate whether the points should be added to the plot.

...

Additional arguments are passed to points.

Value

Returns a list with a height that can be used as the upper bound of ylim for a plot, then also the x- and y-coordinates of the points in the stacked dot plot.

Author(s)

David Diez

See Also

dotPlot, histPlot

Examples


#

openintro documentation built on June 22, 2024, 7:37 p.m.