Please Do Assist

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Please Do Assist

sleepingmonk
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())
Reply | Threaded
Open this post in threaded view
|

Re: Please Do Assist

GregChapman
This forum is for Nabble Support only.

I suggest you post at one of the mail lists hosted at:
http://r.789695.n4.nabble.com
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Please Do Assist

Raven<Nabble>
I'll look into this to see whether it's an issue with posting from Nabble.

Have you tried posting to the mailing list directly?
Reply | Threaded
Open this post in threaded view
|

Re: Please Do Assist

sleepingmonk
Thank you for taking time and helping me out.
Reply | Threaded
Open this post in threaded view
|

Re: Please Do Assist

GregChapman
In reply to this post by Raven<Nabble>
Hi Raven,
Are you aware of the r.help forum description?
-------
This forum is an archive for the mailing list r-help@r-project.org (more options) Messages posted here will be sent to this mailing list.
The ‘main’ R mailing list, for discussion about problems and solutions using R, announcements (not covered by ‘R-announce’ or ‘R-packages’, see above), about the availability of new functionality for R and documentation of R, comparison and compatibility with S-plus, and for the posting of nice examples and benchmarks.

This is an archive for R-help, not a forum. It is not possible to post through Nabble - you may not start a new thread nor follow up an existing thread. If you wish to post, but are not subscribed to the list through the list homepage, subscribe first and post from your subscribed email address. Until 2015-10-15, subscribers could post through Nabble, but policy has been changed as too many non-subscribers misunderstood the interface.
-------
Hence my poorly worded suggestion that the OP posted direct to the mail lists linked from the Nabble archive.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Please Do Assist

Raven<Nabble>
Thanks Greg, I've seen that description before but I must have forgotten about it because it is not on the home page, only the sub-forum page. Maybe I should put something on the home page.

So the answer for this thread is as per the r-help forum description, posting for R-help was disabled several years ago and you cannot post through Nabble. You will need to post directly to the mailing list.