Re: [R] problems plotting geom_line on ggplot2

From: ONKELINX, Thierry <Thierry.ONKELINX_at_inbo.be>
Date: Tue, 12 Feb 2008 12:48:43 +0100

Try this.

ggplot(data = DF, aes(x=Hora, y=PAC) + geom_line()

HTH, Thierry




ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest
Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium
tel. + 32 54/436 185
Thierry.Onkelinx_at_inbo.be
www.inbo.be

Do not put your faith in what statistics say until you have carefully considered what they do not say. ~William W. Watt A statistical analysis, properly conducted, is a delicate dissection of uncertainties, a surgery of suppositions. ~M.J.Moroney

-----Oorspronkelijk bericht-----
Van: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] Namens Gallego Liberman, Matias
Verzonden: dinsdag 12 februari 2008 12:06 Aan: r-help_at_r-project.org
Onderwerp: [R] problems plotting geom_line on ggplot2

Hi!
My problem is similar to an already posted one, but the proposed solution did not work.
I'm not able to make a line type plotting on ggplot2 package this is the code and the error

> DF

         Hora PAC

640  10:00:00 13960
673  10:15:00 15690
790  10:30:00 17200
884  10:45:00 18580
932  11:00:00 20440
1027 11:15:00 22680
1157 11:30:00  9340
1253 11:45:00  6540
1294 12:00:00 23590
1389 12:15:00 23750
1526 12:30:00 22080
1595 12:45:00 17070
1689 13:00:00 19370
1766 13:15:00 20640
1869 13:30:00 24650
1951 13:45:00 23940
2033 14:00:00 18740
2127 14:15:00 19340
2210 14:30:00 22860
2305 14:45:00 23510
2371 15:00:00 16110
2460 15:15:00 23770
2526 15:30:00 23270
2617 15:45:00 20310
2722 16:00:00 11410
2820 16:15:00 22560
2901 16:30:00 21570
2979 16:45:00 20730
3060 17:00:00 19780

> p<-geom_line(mapping=aes(x=Hora,y=PAC),data=DF)
> ggplot()+p

Error en do.call("gList", panels) : second argument must be a list

may anybody help me, please?

M.

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 12 Feb 2008 - 12:13:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Feb 2008 - 12:30:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive