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 where your graph is.
>
> Add plot(res.pca) and i think your problem will be solved.
>

Does the code produce a graph when used without the pdf()? If no, there is a
problem. If yes, try to say

print(  res.pca )

instead of res.pca as some graphs need to be printed to the device
explicitely.

Cheers,

Rainer


> 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.
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      rai...@krugs.de

Skype:      RMkrug

        [[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.

Reply via email to