[ top | up ]

Add Points to a Plot

Syntax

points(x, y, pch="o", ...)

Description

points is a generic function to draw a sequence of points at the specified coordinates. The specified character(s) are plotted, centred at the coordinates.

Graphical parameters are permitted as arguments to this function.

See Also

plot, lines.

Examples

plot(-4:4, -4:4, type = 'n')# setting up coord. system points(rnorm(200), rnorm(200), col = 'red') points(rnorm(100)/2, rnorm(100)/2, col = 'blue', cex = 1.5)