On May 5, 2:23 pm, Harlan Harris <
harlan.har...@gmail.com> wrote:
> OK. This is strange. It has something to do maybe with numeric vs ascii
> sorting or something? I'm attaching an rda file with a subset of my data (8
> subjects worth). To reproduce the problem:
>
> > library("ggplot2")
> > load("test-8Ss.rda")
> > ggplot(head(ef4.LC2,72), aes(Index, value, colour=Condition)) +
>
> stat_summary(fun.data="mean_cl_normal", geom="smooth", size=2, alpha=.1)> ggplot(head(ef4.LC2,80), aes(Index, value, colour=Condition)) +
>
> stat_summary(fun.data="mean_cl_normal", geom="smooth", size=2, alpha=.1)
>
> The first ggplot looks fine (error bars are big, of course). Notice the x
> axis goes to 9. The second ggplot, where the x axis goes to 10 is garbage.
> There's no obvious problem with the data between rows 72 and 80. The data
> was put into this format by cast/melt calls. (I had to fill in some missing
> data.)
>
> The data types seems reasonable -- everything that should be a factor is a
> factor, and everything that should be numeric is numeric. The order of the
> rows in the data frame shouldn't matter (right??), but in any case they're
> in the order of the Index (x) variable.
>
> Thank you for any suggestions!
>
> -Harlan
>