Re: [R] problems plotting geom_line on ggplot2

From: hadley wickham <>
Date: Tue, 12 Feb 2008 09:28:25 -0600

On Feb 12, 2008 9:12 AM, ONKELINX, Thierry <> wrote:
> Just to inform the list that the problem is solved:
> This problem was due to DF$Hora being a factor. Converting it to numeric
> or time solved the problem.

This is because geoms are automatically broken into groups based on the combination of all categorical variables used in the plot - which obviously causes problems in this case. The correct solution is to override the default grouping with group = 1.

I do need to document this better somewhere.



______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 12 Feb 2008 - 15:42:51 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 - 16:30:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive