Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Last active March 6, 2022 20:22
Show Gist options
  • Save MJacobs1985/db607f50c3a1d257e7331374d8391c2f to your computer and use it in GitHub Desktop.
Save MJacobs1985/db607f50c3a1d257e7331374d8391c2f to your computer and use it in GitHub Desktop.
ggplot(dataset, aes(x=Tijdstip, y=Flow, colour=as.factor(ID))) +
geom_line() +
theme_bw()
ggplot(dataset, aes(x=as.numeric(ElapsedTime), y=Flow,colour=as.factor(ID))) +
geom_line() +
theme_bw()+ theme(legend.position = "none")
ggplot(dataset, aes(x=Tijdstip, y=Flow, colour=as.factor(ID))) +
geom_line() +
facet_wrap(~ID, scales="free")+
theme_bw() + theme(legend.position = "none")
ggplot(dataset, aes(x=Tijdstip, y=VO2cdi, colour=as.factor(ID))) +
geom_line() +
theme_bw()+ theme(legend.position = "none")
ggplot(dataset, aes(x=Tijdstip, y=VO2cdi, colour=as.factor(ID))) +
geom_line() +
facet_wrap(~ID, scales="free")+
theme_bw()+ theme(legend.position = "none")
ggplot(dataset, aes(x=Meting, y=VO2cdi, group=as.factor(ID))) +
geom_line(alpha=0.1) +
geom_boxplot(aes(fill="red"), alpha=0.5, varwidth=TRUE)+
theme_bw()+ theme(legend.position = "none")
dataset%>%
group_by(ID)%>%
summarise_by_time(Tijdstip,.by="minute",flowmean=mean(Flow,na.rm=TRUE))%>%
plot_time_series(Tijdstip, flowmean,.facet_ncol = 5,.facet_scales = "free_x",.interactive=FALSE)
dataset%>%
group_by(ID)%>%
summarise_by_time(Tijdstip,.by="minute",VO2cdimean=mean(VO2cdi,na.rm=TRUE))%>%
plot_time_series(Tijdstip, VO2cdimean,.facet_ncol = 5,.facet_scales = "free_x",.interactive=FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment