search for: a6d13bkjiu7uy2q

Displaying 1 result from an estimated 1 matches for "a6d13bkjiu7uy2q".

2013 Jan 22
0
Plotting error while using ggplot facet
...was able to create the facets but when I tried to add two series in one facet then only one facet got updated while other didn't. The data watersurf1.csv can be downloaded from https://www.dropbox.com/s/ainioj2nn47sis4/watersurf1.csv The output I got can be found on https://www.dropbox.com/s/a6d13bkjiu7uy2q/facet%202%20subplots.png The code I used is as follows: watersurf <- read.table("watersurf1.csv",sep=",",header=TRUE) watersurf[1:100,] ggplot(data=watersurf,aes(x=time,y=data))+geom_line()+facet_wrap(~id) watersurf$coupleid <- factor(rep(unlist(by(watersurf$id,watersur...