Hello all,
I have the formula below:
pdf('rplotings.pdf')
for (i in 1:length(n_people)){
object3 <- Datarray[, ,i]
object2 <- data.frame(object3)
ggcorrplot(object2) + ggtitle(paste("N=",n_people[i]))
}
dev.off()
What I have tried to do here is place all 20 plots into a single PDF file: the function seems to be running without error but when I try to open the file, it says there is an error?