Pass multiple variables into ggtitle R
I created some fake data to make the code work, but you can of course adapt it for your real data.
dat=data.frame(x=rnorm(10), y=rnorm(10))
ip_case_index <- paste("IP Only Case Index =",
round(mean(rnorm(10)), digits = 2))
oa_case_index <- paste("OA Case Index",round(mean(rnorm(10)),
digits = 2))
sn_case_index <- paste("IP and SNF Only"
,round(mean(rnorm(10)), digits = 2))
ggplot(dat, aes(x,y)) + geom_point() +
ggtitle(paste0(ip_case_index,"\n", oa_case_index, "\n", sn_case_index))