[R] plot pdf
Uwe Ligges
ligges at statistik.tu-dortmund.de
Sat Oct 30 17:50:31 CEST 2010
On 30.10.2010 17:23, mmstat at comcast.net wrote:
>
>
> Subject: plot
>
> Your recent reply has got me underway. However the savePlot command is not working.
> I am following refman example. Any thoughts?
>
> I am on a new windows 7 os. I am not sure how to open a new device (output graphic
> window). I wonder if that could be the problem?
>
> R Code
> xcrit=135.9
> cord.x<- c(80,seq(80,xcrit,.1),xcrit)
> cord.y<- c(0, dnorm(seq(80, xcrit, .1), 140, 15), 0)
> curve(dnorm(x,140,15),xlim=c(80,200),main='Normal PDF',ylab="Probability")
> polygon(cord.x,cord.y,col='orange')
> savePlot(filename="c:\\lower.emf",type=c("emf"), device = dev.cur(),restoreConsole = TRUE)
Probably you do not have administrator permissions when running R and
hence you cannot write to c:\ directly.
Uwe Ligges
> Warning messages:
> 1: In savePlot(filename = "c:\\lower.emf", type = c("emf"), device = dev.cur(), :
> Unable to open metafile 'c:\lower.emf' for writing
> 2: In savePlot(filename = "c:\\lower.emf", type = c("emf"), device = dev.cur(), :
> opening device failed
>
> Sincerely,
> Mary A. Marion
>
>
>
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list