Learn R Programming

SciencesPo (version 1.3.9)

dot.plot: Dot Plot

Description

Makes a dot plot.

Usage

dot.plot(x, pch = 16, bins = 50, spacing = 1, xlab, ...)

Arguments

x
The data vector
pch
The plotting "character" or symbol, default is dots.
bins
The bins width.
spacing
A value for vertically spacing between dots.
xlab
The axis label.
...
Other parameters passed on to `plot`.

encoding

UTF-8

Examples

Run this code
with(iris, dot.plot(Sepal.Length,
xlab="Length", col = as.numeric(Species)))

Run the code above in your browser using DataLab