Please Do Assist
Posted by sleepingmonk on
URL: https://support.nabble.com/Please-Do-Assist-tp7601546.html
This message is being rejected by filter rule match. please help. I have no idea why it is being rejected. I really need expert guidance to resolve my query.
Dear R users,
I am writing a function of simple linear regression. However I'm struck at
time of exporting the plot & summary(lm()) as pdf file. I don't want to
prename the pdf file using pdf("name") since I be using this function
repeatedly.
pdf()
paste(print(summary(e)),"\n","\n","\n")
plot(a ~ b,ylab="Dependent Variable",xlab="Independent Variable",
col="purple",main = "Regression")
abline(lm(a ~ b))
dev.off()
Please help me in finding the right way to
1)make R to prompt for filename before writing it to a pdf file.
2)write both plot and text to a pdf (in my case, the summary of lm())