I am trying to make a boxplot on a dataframe with characters (factor levels removed while importing the dataframe using 'stringsAsFactors = FALSE' command). Here is the sample code for my plot:
boxplot(df$H~df$C, outline=F, na.rm = T, ylab="H", xlab="C", main="H by C", ylim=c(min(df$H),max(df$H)))
The problem is that one of categories on the x axis is a '0' which I would like to remove. Is there a way to prevent this category from being plotted?