Re: [R] ggplot2 lost label

2016-09-18 Thread David Winsemius
> On Sep 18, 2016, at 11:05 AM, Troels Ring wrote: > > dear friends - I have a problem in ggplot2 which I hope you can help me > understand and solve. > > Running windows 7, R 3.2.1 > > grp <- gl(3,4,12) > trt <- gl(4,1,12) > num <- c(11,1,0,0,6,2,0,0,1,9,10,10) > MM <- data.frame(grp=grp,num

[R] ggplot2 lost label

2016-09-18 Thread Troels Ring
dear friends - I have a problem in ggplot2 which I hope you can help me understand and solve. Running windows 7, R 3.2.1 grp <- gl(3,4,12) trt <- gl(4,1,12) num <- c(11,1,0,0,6,2,0,0,1,9,10,10) MM <- data.frame(grp=grp,num=num,trt=trt) levels(MM$grp)<- c("anest1","anest2","anest3") levels(MM$tr