Hello R users,
I am getting an error while running following code.
library(ggplot2)
ggplot(hourly_data1,aes(hour, power))+
geom_boxplot(aes(fill=monthname),outlier.shape=NA) + facet_wrap(~monthname)
ggplot(hourly_data1,aes(hour, power))+
geom_boxplot(aes(fill=dayname),outlier.shape=NA) + facet_wrap(~dayname) +
geom_smooth(aes(group=1))
An error i am getting is:
Error: Must request at least one colour from a hue palette.
Please help me to solve this.