dots | R Documentation |
Create a quick dotchart of 1 or 2 datasets. These dotcharts are a poor man's histogram, not the trellis dotplot.
dots(x,...)
dots2(x, y, colx = "green", coly = "blue", lab1 =
deparse(substitute(x)), lab2 = deparse(substitute(y)),...)
x |
Vector, data to be plotted (should be rounded). |
y |
Vector, second dataset to be plotted. |
colx |
Color of points for |
coly |
Color of points for |
lab1 |
Label for |
lab2 |
Label for |
... |
Additional arguments passed to plotting functions. |
These functions create basic dotcharts that are quick "back of the envelope" approximations to histograms. Mainly intended for demonstration.
No meaninful value. These functions are run for the side effect of creating a plot.
Greg Snow 538280@gmail.com
dotplot
in the lattice package, hist
dots( round( rnorm(50, 10,3) ) )
dots2( round( rnorm(20, 10,3) ), round(rnorm(20,12,2)) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.