Re: [R] Save figure in pdf

2011-08-26 Thread Komine
Thank you for your answers. The problem persists always (without ".pdf" or using "print" or "plot"). The code runs, but the probem is to save the figure with pdf format in order to load it directly in word. Howerver, I will read the link indicated. -- View this message in context: http://r.789

Re: [R] Save figure in pdf

2011-08-26 Thread David Winsemius
On Aug 26, 2011, at 10:06 AM, Rainer M Krug wrote: On Fri, Aug 26, 2011 at 3:37 PM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: I don't have the FactoMineR library so I can't replicate, but it seems that your problem is that you never plot anything. Effectively, your code runs

Re: [R] Save figure in pdf

2011-08-26 Thread Rainer M Krug
On Fri, Aug 26, 2011 at 3:37 PM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: > I don't have the FactoMineR library so I can't replicate, but it seems that > your problem is that you never plot anything. > > Effectively, your code runs > > windows() > x = 1:5 > x > > and then wondering

Re: [R] Save figure in pdf

2011-08-26 Thread R. Michael Weylandt
I don't have the FactoMineR library so I can't replicate, but it seems that your problem is that you never plot anything. Effectively, your code runs windows() x = 1:5 x and then wondering where your graph is. Add plot(res.pca) and i think your problem will be solved. Michael Weylandt On Fri,

[R] Save figure in pdf

2011-08-26 Thread Komine
Hi, I created a figure with R and I want to save it in .pdf. I used this code: > pdf("res.pca.pdf",width=10,height=8) > library(FactoMineR) > res.pca<-PCA(acp) > res.pca > dev.off() When I go in my folder, I find an empty file ( 0 Ko). Do you know where is the problem. Thank you in advance