plotDots: Adds Points on a Pre-existing Plot using Shifted Locations

Description Usage Arguments Value Author(s) Examples

View source: R/plotDots.R

Description

Adds Points on a Pre-existing Plot using Shifted Locations

Usage

1
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

1
2
3
4
5
6
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)

oaPlots documentation built on May 2, 2019, 6:46 a.m.

Related to plotDots in oaPlots...