Below is my code
ggplot(daily_activity_sleep, aes(x=steptotal , y=calories))+
geom_jitter() +
geom_smooth(color = "red") +
labs(title = "Daily steps vs Calories", x = "StepTotal", y= "calories") +
theme(panel.background = element_blank(),
plot.title = element_text( size=14))
I am getting error which is
Error in check_aesthetics()
:
! Aesthetics must be either length 1 or the same as the data (9699): y
Backtrace: