<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
<FONT COLOR="#000000">Hi Josh, Paulo:</FONT><BR>
<BR>
<FONT COLOR="#000000">Thanks for the responses. Adding the TA=NULL worked as advertised. I had used the normal plot() function prior to this and wanted to try out the quantmod charting function as it seemed to encapsulate some of the settings related to the graphics. I am still new to R graphics and at times using par() can be cumbersome, which is why I thought perhaps chartSeries would enable me to cheat a little bit.</FONT><BR>
<BR>
<FONT COLOR="#000000">Thanks,</FONT><BR>
<FONT COLOR="#000000">Brian</FONT><BR>
<BR>
<BR>
----- Original message ----- <BR>
Sent: 2008/11/15 21:35:23 <BR>
Subject: Re:Re: [R-SIG-Finance] Using quantmod chartSeries for FRED data <BR>
<BR>
Hi Brian, <BR>
<BR>
The chartSeries documentation says that it's a "charting tool to <BR>
create standard financial charts given a time series like object. <BR>
Serves as the base function for future technical analysis additions." <BR>
<BR>
In other words, chartSeries is designed to chart data from stock <BR>
markets, futures markets, currency markets, etc. Paulo's suggestion <BR>
works and you could also use the standard xts/zoo plotting <BR>
functionality. <BR>
<BR>
> plot(Delt(M1)) <BR>
> plot.zoo(Delt(M1)) <BR>
<BR>
Best, <BR>
Josh <BR>
-- <BR>
http://quantemplation.blogspot.com <BR>
<BR>
<BR>
<BR>
On Sat, Nov 15, 2008 at 5:39 PM, Brian Lee Yung Rowe wrote: <BR>
> Hello, <BR>
> <BR>
> I am using quantmod to download FRED data and would like to view the series <BR>
> using the chartSeries function, but I am getting an error. <BR>
> <BR>
>> getSymbols('M1', src='FRED') <BR>
>> class(M1) <BR>
> [1] "xts" "zoo" <BR>
>> chartSeries(Delt(M1), type='line') <BR>
> Error in sum(poss.new) : invalid 'type' (list) of argument <BR>
>> chartSeries(Delt(M1)) <BR>
> Error in sum(poss.new) : invalid 'type' (list) of argument <BR>
> <BR>
> Based on the documentation it seems that this data should be supported: <BR>
> "Courtesy of as.xts it can handle any object that is time-series like, <BR>
> meaning R objects of class xts, zoo, timeSeries, its, ts, irts, and more!" <BR>
> <BR>
> According to ?quantmod, I am using: <BR>
> Version: 0.3-6 <BR>
> Revision: 433 <BR>
> Date: 2007-06-09 <BR>
> <BR>
> <BR>
> Is this functionality supported or am I missing something? <BR>
> <BR>
> Thanks, <BR>
> Brian <BR>
> _______________________________________________ <BR>
> R-SIG-Finance@stat.math.ethz.ch mailing list <BR>
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance <BR>
> -- Subscriber-posting only. <BR>
> -- If you want to post, subscribe first. <BR>
>
</BODY>
</HTML>