Skip to content

Commit

Permalink
#167 adjusted the title of forestplot
Browse files Browse the repository at this point in the history
  • Loading branch information
andkov committed Mar 1, 2017
1 parent 0f425b0 commit 83b6227
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reports/correlation-3/support-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ print_forest_plot <- function(
"lower"= c(NA,NA,d$lower,NA, forest_summary["lower"]),
"upper"= c(NA,NA,d$upper,NA, forest_summary["upper"])
)
gender_name <- ifelse(subgroup_=="male","MEN","WOMEN")
gender_name <- ifelse(subgroup_=="male","MEN","WOMEN")
# title_dynamic <- paste0(toupper(index)," correlations in ",toupper(domain_)," domain among ",gender_name,"S")
title_dynamic <- paste0(toupper(domain_),": correlations between ",toupper(index),"S for ",gender_name)
g <- forestplot::forestplot(
d_text,
d_value,
Expand Down Expand Up @@ -493,7 +495,7 @@ print_forest_plot <- function(
# hrzl_lines = list("3" = gpar(lty=1)),
hrzl_lines = gpar(col="#444444"),
graph.pos = 5,
title = paste0(toupper(index)," correlations in ",toupper(domain_)," domain among ",gender_name,"S")
title = title_dynamic
# title = paste0("Slope correlations among ",toupper(subgroup_),"S")
)
return(g)
Expand Down

0 comments on commit 83b6227

Please sign in to comment.