Re: [R] Problem to sort factor

2007-07-17 Thread Arne Brutschy
Hi, hadley wickham wrote: h Does this get you started? h x - factor(c(a, b, c)) h factor(x, levels=c(c,b,a), labels=c(cc,bb, aa)) hmm, not really. I simply don't seem to get the concept of factors here... How do I combine the above code with my dataframe and pass it on to facet_grid??? Thanks

[R] Problem to sort factor

2007-07-16 Thread Arne Brutschy
Hello, I'm having a problem renaming and sorting the underlying factor of a ggplot2 based plot. Here's my code: ---8-- delta - ggplot(subset(data, Model==c(dyn, dl4, dl3)), aes(x=Problemsize, y=Fitness)) + geom_smooth(size=1, color=black, fill=alpha(blue, 0.2))+

Re: [R] Problem to sort factor

2007-07-16 Thread hadley wickham
On 7/16/07, Arne Brutschy [EMAIL PROTECTED] wrote: Hello, I'm having a problem renaming and sorting the underlying factor of a ggplot2 based plot. Here's my code: ---8-- delta - ggplot(subset(data, Model==c(dyn, dl4, dl3)), aes(x=Problemsize, y=Fitness)) + geom_smooth(size=1,