s-news
[Top] [All Lists]

Re: legend color in finmetrics

To: "'Ruud H. Koning'" <info@rhkoning.com>, <s-news@lists.biostat.wustl.edu>
Subject: Re: legend color in finmetrics
From: "Dimitrios Chalvatzis" <dimitrios.stats@btopenworld.com>
Date: Wed, 14 Jul 2004 17:29:40 +0100
Importance: Normal
In-reply-to: <200407140850170671.004D6194@localhost>
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



<Prev in Thread] Current Thread [Next in Thread>