[R] plot pdf

mmstat at comcast.net mmstat at comcast.net
Sat Oct 30 17:23:03 CEST 2010



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


 



More information about the R-help mailing list