Hi Judith, If I undestand, see ?savePlot and try this
xyplot(dat$a~dat$b) savePlot(filename="C:\\yourname",type=c("pdf"),device=dev.cur()) I hope this helps. Jorge On 2/20/08, Judith Flores <[EMAIL PROTECTED]> wrote: > > Dear R-experts, > > I am running a script that has the following > structure: > > windows(height=5.5,width=8) > > dat<-read.csv("myfile.csv") > names(dat)<-c('a','b','c','d') > dat<-dat[,1:4] > > xyplot(dat$a~dat$b) > > > Then I usually save the plot as a PDF (from the > menu in the R console). I can save the PDF twice in a > row; but at the third time, right when I am about to > give a name to the graph, R crashes, no error > messages. > > I am using R 2.6.2, for Windows. I copy the script > from TinnR. > > Thank you in adavance for any help, > > Judith > > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > > ______________________________________________ > 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.