Skip to content
Prev 172724 / 398502 Next

identify() and postscript output

Prof Brian Ripley wrote:
My bad. Thanks for Ripleying me. I'm using Win XP, R 2.8.1 with packages 
shown under sessionInfo() below.

 > plot(1:10)
 > identify(1:10)

 > ## Click near points 6 and 7
 > dev.copy2eps("test.eps")
Error in device(...) : unknown family 'test.eps'

I get output on WinXP by specifying file=
 > dev.copy2eps(file="test.eps")
windows
      2

But still no joy -- test.eps *does not* contain the point labels (I 
clicked on 7 & 8).  It's not a viewer problem --
I checked with gv on Linux.  Perhaps that bug wasn't fixed on WinXP?
I also attach a .png screen shot of the R graphics window.

 > sessionInfo()
R version 2.8.1 (2008-12-22)
i386-pc-mingw32

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United 
States.1252;LC_MONETARY=English_United 
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  
methods   base    

other attached packages:
[1] gnm_0.9-8        vcdExtra_0.3-4   vcd_1.2-2        colorspace_1.0-0 
MASS_7.2-45      nnet_7.2-45    
[7] lattice_0.17-20  car_1.2-12     

loaded via a namespace (and not attached):
[1] qvcalc_0.8-4 tools_2.8.1
 >