Re: [R] problems plotting geom_line on ggplot2

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

On Feb 12, 2008 9:12 AM, ONKELINX, Thierry <Thierry.ONKELINX_at_inbo.be> 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.

Hadley

-- 
http://had.co.nz/

______________________________________________
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 - 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive