Skip to content
Prev 315167 / 398502 Next

Drawing a dotted circle.

You can get a dashed line if you plot to pdf() or svg(), but not any of the
bitmap devices. The ellipse() function in the car package will work, but you
have to set up the plot first:

library(car)
plot(c(-1.1, 1.1), c(-1.1, 1.1), type="n", asp=1)
ellipse(c(0, 0), matrix(c(1,0,0,1), 2), 1, lty=2, co="gray", center.pch="")

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352