Re: [R] Putting subscript in facet_grid label of ggplot

2016-02-11 Thread David Winsemius
> On Feb 11, 2016, at 7:41 PM, Harun Rashid via R-help > wrote: > > Hello, > I am having trouble with putting subscript in facet_grid label. Here is > an example of the work I have been trying to do. > >> > df<-data.frame(species=gl(2,10,labels=c('sp1','sp2')),age=sample(3:12,40,replace=T),v

[R] Putting subscript in facet_grid label of ggplot

2016-02-11 Thread Harun Rashid via R-help
Hello, I am having trouble with putting subscript in facet_grid label. Here is an example of the work I have been trying to do. > df<-data.frame(species=gl(2,10,labels=c('sp1','sp2')),age=sample(3:12,40,replace=T),variable=gl(2,20,labels=c('N1P1 var','N2P1 var')),value=rnorm(40)) > test.pl