LightlyActive <- ggplot(data=daily_activity_all,
aes(x=LightlyActive, y=Calories, color=TotalDistance)) +
geom_point() +
scale_color_gradient(low = "lightgreen", high="darkgreen", na.value="white") +
geom_smooth(method=loess, color="white", size=0.5) +
labs (title = "Lightly Active")
#> Error in ggplot(data = daily_activity_all, aes(x = LightlyActive, y = Calories, : could not find function "ggplot"
FairlyActive<- ggplot(data=daily_activity_all,
aes(x=LightlyActive, y=Calories, color=TotalDistance)) +
geom_point() +
scale_color_gradient(low = "lightblue", high="darkblue", na.value="white") +
geom_smooth(method=loess, color="white", size=0.5) +
labs (title = "Fairly Active")
#> Error in ggplot(data = daily_activity_all, aes(x = LightlyActive, y = Calories, : could not find function "ggplot"
VeryActive<- ggplot(data=daily_activity_all,
aes(x=LightlyActive, y=Calories, color=TotalDistance)) +
geom_point() +
scale_color_gradient(low = "khaki", high="indianred", na.value="white") +
geom_smooth(method=loess, color="white", size=0.5) +
labs (title = "Very Active")
#> Error in ggplot(data = daily_activity_all, aes(x = LightlyActive, y = Calories, : could not find function "ggplot"
activity_plot <- ggarrange("LightlyActive + theme_void(),
FairlyActive + theme_void(),
VeryActive + theme_void(), nrow=1, ncol=3)")
#> Error in ggarrange("LightlyActive + theme_void(),\n FairlyActive + theme_void(),\n VeryActive + theme_void(), nrow=1, ncol=3)"): could not find function "ggarrange"
annotate_figure(activity_plot, bottom=text_grob("Minutes"),
left=text_grob("Calories"))
#> Error in annotate_figure(activity_plot, bottom = text_grob("Minutes"), : could not find function "annotate_figure"
@andresrcs at last I learnt to reprex
so now this code runs down but the annotate_figure plot shows blank. need help!!!