Description Usage Arguments Author(s) Examples
Creates a 2-d scatterplot with a third variable plotted on a color ramp
1 2 3 | dotsplot.rgb(x, y, z, ramp = "gr", pch = 16, add = F, legend = T,
cex = 1, neut = 0.5, legend.title = NULL, invert = F, xlab = "",
ylab = "", main = "", ...)
|
x |
X-coordinate vector |
y |
Y-coordinate vector |
z |
vector of values to use for the color ramp |
ramp |
Type of color ramp to use, essentially possible ramps from red, green, and blue. Possible values are "gr" (default), "rg", "gb", "bg", "br", "rb", "r", "g", "b", "rr", "gg", "bb" |
pch |
Point character to use (defaults to 16, or solid circles) |
add |
A value of TRUE adds the points to an active plot, rather than creating a new one |
legend |
A value of FALSE suppresses the legend |
cex |
Universal character expansion factor for plotting (between 0 and 1) |
neut |
An RGB value (between 0 and 1) for the neutral color(s), those not used on the rgb ramp. It might take a little twiddling. |
legend.title |
Title for the legend |
invert |
A value of TRUE inverts the current color ramp |
... |
xlab, ylab, and main work like usual |
Matt Tyers
1 2 3 4 5 | x <- rnorm(1000)
y <- rnorm(1000)
z <- x+y
dotsplot.rgb(x,y,z,ramp="rg",legend.title="Legend Title")
dotsplot.rgb(x,y,z,ramp="rg",cex=.6,legend.title="Legend Title",invert=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.