[R-SIG-Finance] chart.TimeSeries

Peter Carl peter at braverock.com
Fri Nov 8 20:26:11 CET 2013


Specify date.format; otherwise the format of the axis is determined by the
data's periodicity.

pcc
-- 
Peter Carl
http://www.braverock.com/peter

> Hello,
>
> I am trying to plot a large intradaily xts time series object (hourly data
> since 2003), with chart.TimeSeries
>
>> tail(myresults)
>                             Close      Close.1
> 2013-11-06 13:00:00  4.442174e-05 4.442174e-05
> 2013-11-06 14:00:00  9.106052e-04 9.106052e-04
> 2013-11-06 15:00:00 -1.220432e-03 0.000000e+00
> 2013-11-06 16:00:00  2.673421e-03 0.000000e+00
> 2013-11-06 17:00:00 -9.970900e-04 0.000000e+00
> 2013-11-06 18:00:00  6.653901e-05 0.000000e+00
>
>
> with
>
>
> chart.TimeSeries(myresults[,2],major.ticks="years" ,minor.ticks=FALSE)
>
>
> I get only hour x-axis labels. No date or month or year. Is there a way
> implicitly to plot only (say) months/years on the x-axis, omitting the
> hour
> time stamp?
>
> Many thanks in advance.
>
> Costas
>
> __________________________________________________________________
>
> *Costas Vorlow
> <http://www.gravatar.com/avatar/49a9dee59073b1ed4a36440a06aeb81b> *
> *http://www.linkedin.com/in/costasvorlow
> <http://www.linkedin.com/in/costasvorlow>*
> *http://www.vorlow.com* <http://www.vorlow.com>
>
> â–‡ â–
 â–ˆ â–
 â–‡ â–‚ â–ƒ ▁ ▁ â–
 â–ƒ â–
 â–
 â–„ â–
 â–‡ â–
 â–ˆ
> â–
 â–‡ â–‚ â–ƒ ▁ ▁ â–
 â–ƒ â–
 â–
 â–„ â–
 â–‡ â–
 â–ˆ â–
 â–‡
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.



More information about the R-SIG-Finance mailing list