[R] ggplot facet and subsetting

John Kane jrkrideau at inbox.com
Wed Nov 26 18:13:00 CET 2014


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 mismatched too
> p<-ggplot(vec.c, aes(x=fi, y=vec.c[,2]))
> p+geom_point(size=5)+geom_line()+facet_grid(.~stroj)

I don'[ understand what you want  here so cannot suggest anything

____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.



More information about the R-help mailing list