plotDots {oaPlots} | R Documentation |
Adds Points on a Pre-existing Plot using Shifted Locations
Description
Adds Points on a Pre-existing Plot using Shifted Locations
Usage
plotDots(vec = NULL, xLeft = 0.8, xRight = 1.2, ...)
Arguments
vec |
numeric vector |
xLeft |
left x boundary of the point plotting region |
xRight |
right x boundary of the point plotting region |
... |
further arguments to be handed to the points function |
Value
points are added to the current graphics device
Author(s)
Jason Waddell
Examples
x <- sample(1:5, size = 25, replace = TRUE)
plot(x = -1, y = -1, xlim = c(0.5,1.5), ylim = range(x),
ylab = "", xlab = "", xaxt = "n")
colVec <- c(rep("olivedrab", 15), rep("goldenrod", 5), rep("red", 5))
plotDots(vec = x, xLeft = 0.8, xRight = 1.2, pch = 19,
col = colVec, cex = 2)
[Package oaPlots version 0.0.25 Index]