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, Aug 26, 2011 at 9:21 AM, Komine <moma...@yahoo.fr> wrote: > 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 > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Save-figure-in-pdf-tp3770833p3770833.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.