[R] line length in legend
Giovanni Petris
GPetris at uark.edu
Wed Dec 10 17:58:39 CET 2008
Hello,
Is it possible to set the length of the lines appearing in a
legend? For example, with
> plot(window(EuStockMarkets, end = 1992), plot.type = "s", lty = c("13", "6413", "431313", "B4"))
> legend(1991.7, 2200, legend = colnames(EuStockMarkets), lty = c("13", "6413", "431313", "B4"))
I end up with a legend in which the "dot-dash" patterns of the
different line types are hard to distinguish. With a longer piece of
line that would be easier.
Thank you in advance,
Giovanni
--
Giovanni Petris <GPetris at uark.edu>
Associate Professor
Department of Mathematical Sciences
University of Arkansas - Fayetteville, AR 72701
Ph: (479) 575-6324, 575-8630 (fax)
http://definetti.uark.edu/~gpetris/
More information about the R-help
mailing list