Re: [R] How to drop unused factors in faceted R ggplot boxplot?

2013-01-24 Thread Niec
Thank you, Jeff. I think I should have been more clear. I don't want to modify my data. I need to create a series of box plots for different sites (north and south in my example but there are many more) but I don't want empty rows in my plot - for years when data was not collected. I tried to make

[R] How to drop unused factors in faceted R ggplot boxplot?

2013-01-23 Thread Niec
Below is the data sample(example) that I use to make boxplots. I tried everything I could think of but cannot make a plot where for the south site only years existing in data for this site show. Is what I am trying to do possible? Thank you. Here is my code: ggplot(stest, aes(x=year, y=conc))