make sure g2 is a factor; initial attempts for barplots