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)
;
> -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
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
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
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
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
6 matches
Mail list logo