Skip to content

Commit

Permalink
reduce font size in regression plots
Browse files Browse the repository at this point in the history
  • Loading branch information
Leighton Pritchard committed Mar 21, 2021
1 parent 4de7440 commit 9db4177
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions notebooks/03a-barchart.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,7 @@ plot_regression = function(){
geom_smooth(method="lm", level=0) +
geom_text(data=df_text,
mapping=aes(label=label, x=-Inf, y=11),
hjust=-0.1, vjust=-1,
size=5) +
hjust=-0.1, vjust=-1) +
facet_wrap(~cohort, ncol=2)
}
Expand All @@ -364,8 +363,7 @@ plot_ribbon = function(){
geom_smooth(method="lm") +
geom_text(data=df_text,
mapping=aes(label=label, x=-Inf, y=11),
hjust=-0.1, vjust=-1,
size=5) +
hjust=-0.1, vjust=-1) +
facet_wrap(~cohort, ncol=2)
}
Expand All @@ -382,8 +380,7 @@ plot_regscat = function(){
geom_point(size=5, alpha=0.7) +
geom_text(data=df_text,
mapping=aes(label=label, x=-Inf, y=11),
hjust=-0.1, vjust=-1,
size=5) +
hjust=-0.1, vjust=-1) +
facet_wrap(~cohort, ncol=2)
}
Expand All @@ -393,8 +390,7 @@ plot_regribscat = function(){
geom_point(size=5, alpha=0.7) +
geom_text(data=df_text,
mapping=aes(label=label, x=-Inf, y=11),
hjust=-0.1, vjust=-1,
size=5) +
hjust=-0.1, vjust=-1) +
facet_wrap(~cohort, ncol=2)
}
Expand Down

0 comments on commit 9db4177

Please sign in to comment.