Skip to content

Plotting parametrized curves (2D or 3D)

2 messages · amenning, David Winsemius

#
On Jul 13, 2011, at 6:08 PM, amenning wrote:

            
Well, I don't know if anyone has done a paracurve, but surely this  
delivers an expected 2D result with plot():

plot(sin(seq(0, 2*pi, by=0.01)), cos(seq(0, 2*pi, by=0.01)))

I have also see the scatterplot developers demonstrate helices in 3D:
(from the Ligges article at citeseer ... and probably ,many other  
sites):

http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.150.4841&rep=rep1&type=pdf

library(scatterplot3d)
z <- seq(-10, 10, 0.01)
x <- cos(z)
y <- sin(z)
scatterplot3d(x, y, z, highlight.3d = TRUE, col.axis = "blue",
col.grid = "lightblue", main = "Helix", pch = 20)

Yep .....  still works.
David Winsemius, MD
West Hartford, CT