I have plotted a dataframe called sleep_final into try_plot, which outputs "Hours of Sleep By Day."
Has anyone found a way to remove the auto-generated legend labeled count on these charts? I would like to keep the other legend labeled Sleep_hrs.
My code and chart image are below:
try_plot <- ggplot(data=sleep_final, mapping=aes(x=ActivityLevel, y=date, color=Sleep_hrs)) +geom_bin_2d() +labs(title= "Hours of Sleep By Day") +theme(axis.title=element_blank(), axis.ticks=element_blank(), plot.title= element_text(hjust=0.5))
try_plot <- try_plot + scale_x_discrete(limits= c("Very Active","Fairly Active","Lightly Active","Sedentary"))