make showing the levels of a factor optional