[R] Problem with legend

Frank Gerrit Zoellner fzoellne at techfak.uni-bielefeld.de
Tue Jul 30 13:42:49 CEST 2002


Hi!

I have a problem using the legend command.
I typed as follows:

 plot(foo bar...)
 legend(0.6,10, c("True Positiv", "False Positive", "False Negative","True Negative"), col = c("black",2,3,4),lty=c(1,1,1,1),pch=c(0,0,0,0), merge = TRUE, bg='gray90')

The plot and its legend is displayed ok. The I apply a dev.cop2eps on it to save the graphic. Then I start gv to view the resulting file. But now, the legend text moves outside its box.
This seems strabge to me and I have no idea why this happens.
I use R 1.4.1 under OSF4.

Thanks
-- 
Frank G. Zoellner
AG Angewandte Informatik
Technische Fakult"at
Universit"at Bielefeld
phone: +49(0)521-106-2951
fax:   +49(0)521-106-2992
email: fzoellne at techfak.uni-bielefeld.de
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list