Re: [R] ggplot facet and subsetting

2014-11-27 Thread PIKAL Petr
4 6:13 PM > To: PIKAL Petr; R help > Subject: RE: [R] ggplot facet and subsetting > > Below > > John Kane > Kingston ON Canada > > This is OK but only in BW > > p<-ggplot(vec.c, aes(x=fi, y=nad1mi)) > > p+geom_point(size=5)+geom_line()+facet_grid(.~stroj)

Re: [R] ggplot facet and subsetting

2014-11-27 Thread PIKAL Petr
; > -Oorspronkelijk bericht- > Van: R-help [mailto:r-help-boun...@r-project.org] Namens PIKAL Petr > Verzonden: woensdag 26 november 2014 14:40 > Aan: R help > Onderwerp: [R] ggplot facet and subsetting > > Dear all > > I encountered strange behaviour of ggplot wi

Re: [R] ggplot facet and subsetting

2014-11-27 Thread ONKELINX, Thierry
from a given body of data. ~ John Tukey -Oorspronkelijk bericht- Van: R-help [mailto:r-help-boun...@r-project.org] Namens PIKAL Petr Verzonden: woensdag 26 november 2014 14:40 Aan: R help Onderwerp: [R] ggplot facet and subsetting Dear all I encountered strange behaviour of ggplot with combi

Re: [R] ggplot facet and subsetting

2014-11-26 Thread John Kane
Below John Kane Kingston ON Canada > This is OK but only in BW > p<-ggplot(vec.c, aes(x=fi, y=nad1mi)) > p+geom_point(size=5)+geom_line()+facet_grid(.~stroj) Perhaps: p <- ggplot(vec.c, aes(x=fi, y=nad1mi, colour = stroj)) p+geom_point(size=5)+geom_line()+facet_grid(.~stroj) > and this is mismat

Re: [R] ggplot facet and subsetting

2014-11-26 Thread Jeff Newmiller
I am not quite sure what you want to achieve here, but you only have one factor column so shouldn't you be using facet_wrap(~stroj), perhaps with nrow or ncol parameters? --- Jeff NewmillerThe

[R] ggplot facet and subsetting

2014-11-26 Thread PIKAL Petr
Dear all I encountered strange behaviour of ggplot with combination of facet and subsetting. I use for creating plots sometimes a for cycle, something like this for (i in n:m) { p<-ggplot(data, aes(x=x, y=data[,i], colour=f))), ...} However I found strange result with this combination This is