I have derived a new data frame major.groups
from an existing data frame antiques
by removing data from 2 categories:
major.groups <- antiques[antiques$Group!="Boxes" & antiques$Group!="Metalware",]
However, when I use boxplot()
, Boxes
and Metalware
still appear on the x-axis (obviously with no corresponding data).
How can I exclude these when working with the new data frame major.groups
? I can obviously remove them outside of R and re-import - but I'm sure there must be a better way.
Many thanks in advance.