Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Created December 10, 2021 20:47
Show Gist options
  • Select an option

  • Save MJacobs1985/8a4449811394f3c951a59b1d00d9a77e to your computer and use it in GitHub Desktop.

Select an option

Save MJacobs1985/8a4449811394f3c951a59b1d00d9a77e to your computer and use it in GitHub Desktop.
Book<- read_excel("X:/StatisticsPlatform/Website/ELearning/Workshops/Bayesian Analysis/Data/Book1.xlsx")
d<-Book%>%dplyr::select(ADG,ADF,FCR,Studycode,Included2017)
d<-d[complete.cases(d), ]
d$Studycode<-as.factor(d$Studycode)
ggplot(d, aes(y = ADG, x = ADF,
colour=Studycode,
size=FCR)) +
geom_point(alpha=0.2)+
facet_grid(~Included2017)+
theme_bw()
ggplot(d, aes(x = ADG, fill = Studycode)) +
geom_density(alpha = 0.5)+theme_bw()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment