Re: [R] plot.prcomp() call/eval

2012-07-02 Thread Jessica Streicher
Then lets go with this: http://pastebin.com/6dtGCrpA as an example of what i do. If you've got a better idea lets hear it :) On 29.06.2012, at 17:30, Joshua Wiley wrote: On Fri, Jun 29, 2012 at 1:20 AM, Jessica Streicher j.streic...@micromata.de wrote: Hm.. i attached a file with the code,

Re: [R] plot.prcomp() call/eval

2012-06-29 Thread Jessica Streicher
Well, i built the methods to create a bit of latex and plot to pdf files for figures, especially figures with subfloats, which weren't possible with sweave (at least i didn't find a way). So i only have to make the calls, give them to the method, and will get proper latex, and the plots will be

Re: [R] plot.prcomp() call/eval

2012-06-29 Thread Jessica Streicher
On 29.06.2012, at 10:05, Jessica Streicher wrote: Well, i built the methods to create a bit of latex and plot to pdf files for figures, especially figures with subfloats, which weren't possible with sweave (at least i didn't find a way). So i only have to make the calls, give them to the

Re: [R] plot.prcomp() call/eval

2012-06-29 Thread Jessica Streicher
Hm.. i attached a file with the code, but it doesn't show up somehow.. On 29.06.2012, at 10:13, Jessica Streicher wrote: On 29.06.2012, at 10:05, Jessica Streicher wrote: Well, i built the methods to create a bit of latex and plot to pdf files for figures, especially figures with

[R] plot.prcomp() call/eval

2012-06-28 Thread Jessica Streicher
Hi! I am getting a lot of numbers in the background of the pca screeplots if i use call(plot) and eval(somecall). Til now, creating the calls and plotting later on this way worked fine. Example: pcaI-prcomp(iris[,1:4]) plot(pcaI) x-call(plot,pcaI) eval(x) Anyone got an idea how i can

Re: [R] plot.prcomp() call/eval

2012-06-28 Thread Joshua Wiley
Hi Jessica, x - call(plot, quote(pcaI)) eval(x) that said, I suspect you would be better off avoiding this idiom altogether. Storing unevaluated calls is akin to putting tomatoes on your sandwich before packing it for work---you can do it but you end up with a soggy sandwich by the time you are

Re: [R] plot.prcomp() call/eval

2012-06-28 Thread Jessica Streicher
Thanks Josh, that soggy sandwhich saves me a LOT of code by the way, I'll keep it for the time being ;) greetings Jessica On 28.06.2012, at 17:15, Joshua Wiley wrote: Hi Jessica, x - call(plot, quote(pcaI)) eval(x) that said, I suspect you would be better off avoiding this idiom

Re: [R] plot.prcomp() call/eval

2012-06-28 Thread Bert Gunter
Yes. One usually creates a call object when one need to modify it in some way -- e.g. alter arguments, change the function -- prior to evaluation. That doesn't seem to be the case here. Why isn't plot(pcal) acceptable? ?do.call is also a more straightforward way to create and evaluate a call

Re: [R] plot.prcomp() call/eval

2012-06-28 Thread Joshua Wiley
On Thu, Jun 28, 2012 at 8:27 AM, Jessica Streicher j.streic...@micromata.de wrote: Thanks Josh, that soggy sandwhich saves me a LOT of code by the way, I'll keep it  for the time being  ;) There may be other ways. With no knowledge of your context, obviously I cannot say absolutely that