[R-SIG-Finance] Shaded regions as an indicator in quantmod

Gabor Grothendieck ggrothendieck at gmail.com
Fri Nov 28 15:19:02 CET 2008


There is also an example of a different way of doing it with zoo
using plot.zoo (rather than xyplot.zoo) here which you can
locate by searching that file for rect:

http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/pkg/man/plot.zoo.Rd?rev=548&root=zoo&view=auto


On Thu, Nov 27, 2008 at 9:41 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> Although not using quantmod there is an example using
> xyplot.zoo (which is a method for lattice xyplot)  in:
>
> library(zoo)
> example(xyplot.zoo)
>
> On Thu, Nov 27, 2008 at 12:19 PM, Brian Lee Yung Rowe
> <brian at muxspace.com> wrote:
>> Hi,
>>
>> I want to produce charts using quantmod similar to the ones available from
>> FRED. Specifically, FRED has this handy feature of rendering the
>> NBER-defined recession periods under the displayed time series.
>>
>> It seems like calling newTA with the appropriate function handle could
>> produce the output necessary to define the shading bars, but I'm not sure if
>> any of the existing charting types can generate the correct look and feel.
>> Anybody have suggestions?
>>
>> Thanks,
>> Brian
>> _______________________________________________
>> R-SIG-Finance at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>> -- Subscriber-posting only.
>> -- If you want to post, subscribe first.
>>
>



More information about the R-SIG-Finance mailing list