# NOT RUN {
# Boxplot
ggplot(data = REFRIGERATOR, aes(x = group, y = kilowatts)) + geom_boxplot()
ggplot(data = REFRIGERATOR, aes(x = group, y = kilowatts, fill = group)) +
geom_boxplot() + labs(y = "energy consumption in kilowatts for a 24 hour period") +
guides(fill = "none") + scale_fill_brewer()
# }
Run the code above in your browser using DataLab