[R] problems plotting geom_line on ggplot2

ONKELINX, Thierry Thierry.ONKELINX at inbo.be
Tue Feb 12 12:48:43 CET 2008


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 op 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 op r-project.org [mailto:r-help-bounces op r-project.org]
Namens Gallego Liberman, Matias
Verzonden: dinsdag 12 februari 2008 12:06
Aan: r-help op 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 op 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.



More information about the R-help mailing list