Library: | plot |
See also: | plotbox dispdot |
Quantlet: | plotdot | |
Description: | High level routine for dotplots. |
Usage: | plotdot(inX,inColorScheme {,inFactor}) | |
Input: | ||
inX | n x 1 Vector (continuous data) | |
inColorScheme | m x 3 Vector of rgb colors for tonal highlighting | |
inFactor | n x 1 Vector (discrete) specifying groups within inX |
The colors are linearly assigned to the frequencies of overlappings. If the maximal frequency of overlappings is less than the number of colors provided, only this smaller number of colors is used.
Obviously, if inColorScheme is of lenght one, tonal highlighting is off.
The output of grcolorscheme() is a valid input for inColorScheme.
Requires the library "stats"
library("graphic") library("plot") library("stats") x = normal(4000) theFactor = string("one", 1:1000) | string("two", 1:1000) theFactor = theFactor | string("three", 1:1000) | string("four", 1:1000) plotdot(x, grcolorscheme("topographic"), theFactor)
Four dotplots in one display.