That should do it:
legend(0.1,1400,legend=colIds(singleIndex.dat),lty=c(1,3),col=c(2,3))
Dimitrios
-----Original Message-----
From: s-news-owner@lists.biostat.wustl.edu
[mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Ruud H. Koning
Sent: 14 July 2004 07:50
To: s-news@lists.biostat.wustl.edu
Subject: [S] legend color in finmetrics
Hello, when following the examples of the finmetrics manual of Eric Zivot,
I encountered a small problem. I have plotted two timeseries curves:
plot(singleIndex.dat, plot.args=list(lty=c(1,3)))
legend(0.1,1400,legend=colIds(singleIndex.dat),lty=c(1,3))
The curves are drawn in colors blue and brown, however the colors in the
legend are black. I would like these to be colored as in the graph. How do
i achieve this? Thanks, Ruud
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu. To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message: unsubscribe s-news
|