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! Talita Perciano Costa Leite Graduanda em Ci??ncia da Computa????o Universidade Federal de Alagoas - UFAL Departamento de Tecnologia da Informa????o - TCI Constru????o de Conhecimento por Agrupamento de Dados - CoCADa
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
> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Deepayan Sarkar > Sent: Tuesday, June 01, 2004 10:49 PM > To: r-help at stat.math.ethz.ch > 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.) > > DeepayanDeepayan 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
See also the scatterplot3d package. Hank On Jun 1, 2004, at 10:01 AM, 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! > > > > Talita Perciano Costa Leite > Graduanda em Ci??ncia da Computa????o > Universidade Federal de Alagoas - UFAL > Departamento de Tecnologia da Informa????o - TCI > Constru????o de Conhecimento por Agrupamento de Dados - CoCADa > > ______________________________________________ > R-help at stat.math.ethz.ch 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 > >Dr. Martin Henry H. Stevens, Assistant Professor 338 Pearson Hall Botany Department Miami University Oxford, OH 45056 Office: (513) 529-4206 Lab: (513) 529-4262 FAX: (513) 529-4243 http://www.cas.muohio.edu/botany/bot/henry.html http://www.muohio.edu/ecology/ http://www.muohio.edu/botany/