> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Deepayan Sarkar
> Sent: Tuesday, June 01, 2004 10:49 PM
> To: [EMAIL PROTECTED]
> Cc: Talita Leite
> Subject: Re: [R] Parametric Curves
> 
> 
> On Tuesday 01 June 2004 09:01, Talita Leite wrote:
> > Hi everybody!
> >
> > I'm trying to plot a parametric curve (three dimensions) using R but
> > I didn't obtain good results. Somebody have already done something
> > like that? Please help me!
> 
> Could you give us more details ? To me, this would be having 
> 3 numeric 
> vectors (say x, y and z), and plot them joining consecutive points by 
> lines. If that's what you want, see ?cloud in the lattice 
> package. (You 
> will need to use type = 'l' for lines.)
> 
> Deepayan

Deepayan is right, of course.  Here's a simple example:

t <- seq(0, 4*pi, length=500)
x <- sin(t)
y <- cos(t)
z <- t
library(lattice)
cloud(z ~ x * y, type="l")

HTH,
Andy

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to