[R] mixing different modes of lty line type specification in legend() ?
Marcus Eger
eger.m at gmx.de
Wed Jun 5 17:55:08 CEST 2002
On Wednesday 05 June 2002 17:43, Uwe Ligges wrote:
> > works, but unfortunately not in legends:
> >
> > legend(x, y, c("A","B","C"), lty=c("0", "22", "42"),lwd=3)
> >
> > It just leaves the first line blank.
> > I think it is because legend simply does not process lty elements less
> > equal zero (not distinguishing between strings and numbers):
>
> legend(x, y, c("A","B","C"), lty=c("10", "22", "42"), lwd=3)
This does not work for me (R 1.4.1):
legend(x,y, c("A","B","C"), lty=c("10", "22", "42"),lwd=3)
does the same as
legend(x,y, c("A","B","C"), lty=c("1", "22", "42"),lwd=3)
or
legend(x,y, c("A","B","C"), lty=c("11", "22", "42"),lwd=3)
It just produces a narrow dot pattern.
Moreover, the lty="10" produces a ghostscript error when plotted to
postscript device:
Error: /rangecheck in --setdash--
Operand stack:
--nostringval-- 0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- 2 3 %oparray_pop
--nostringval-- --nostringval--
Dictionary stack:
--dict:1035/1476(ro)(G)-- --dict:0/20(G)-- --dict:92/200(L)--
Current allocation mode is local
GNU Ghostscript 6.53: Unrecoverable error, exit code 1
--
+-------- ><> -------------------------------------------
| E-Mail: eger.m at gmx.de (NEW)
| marcus.eger at physik.uni-marburg.de (OLD)
| WWW: http://neuro.physik.uni-marburg.de/~eger (NEW)
+--------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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