[R] 2nd try; Re: Graphing question (multiple line graphs arranged spatially)

David Winsemius dwinsemius at comcast.net
Tue Mar 11 15:47:55 CET 2008


Subject: Re: Graphing question (multiple line graphs arranged spatially)
Newsgroups: R-help:gmane.comp.lang.r.general
To: stephen sefick <ssefick at gmail.com>

"stephen sefick" <ssefick at gmail.com> wrote in 
news:c502a9e10803110637g4ebcf2f9mdfd0f5efda5d7299 at mail.gmail.com:

fish <- "station month   bas
190     5       0.000
190     7       1.563
190     10      0.000
190     11      0.000
202     4       18.750
202     5       18.750
202     7       6.250
202     10      4.800
202     11      3.125
198     4       18.750
198     5       31.250
198     7       3.125
198     10      3.200
198     11      12.500
205     4       0.000
205     5       0.000
205     7       0.000
205     10      0.000
205     11      0.000 "

c.df <- read.table(textConnection(fish), header=TRUE)

> 
> I would like to put all of the all of these individual line graphs
> into one 3d graph organized by descending station (205-190).  Does
> anyone know how to do this?

In my first reply I should have added the necessary lattice package that 
contains wireframe:

library (lattice)
wireframe(bas ~ rev(station)*month, data=c.df)

-- 
David Winsemius



More information about the R-help mailing list