[R-SIG-Finance] RFC: plot.xts
rossbennett34 at gmail.com
Tue Jun 9 16:57:25 CEST 2015
Setting a log scale for the vertical axis is not currently implemented for
plotting the main panel in the call to plot.xts. I opened an issue at
https://github.com/joshuaulrich/xts/issues/103 to add support for a log
If you would like to add a panel with the log transformation of the data,
you can do the following
dat.xts <- as.xts(sample_matrix[,"Close"])
addPanel(log, main = 'log transformation')
On Tue, Jun 2, 2015 at 4:07 AM, Gei Lin <gmonaie at gmail.com> wrote:
> Is there a method available to set a log axis in for a panels with
> plot.xts? Like the PerformanceAnalytics::chart.TimeSeries call to
> 2015-04-23 11:52 GMT-04:00 Brian G. Peterson <brian at braverock.com>:
> > On Thu, 2015-04-23 at 15:33 +0000, Paul Teetor via R-SIG-Finance wrote:
> > > Josh:
> > > First, many thanks to everyone for this work. I've seen some
> > > preliminary results, and they look wonderful.
> > > Second, some questions before I dive in:
> > > Does this subsume the xtsExtra package of plotting functions? Do we
> > > still need xtsExtra, or is that toast?
> > plot.xts will be removed from xtsExtra in the near future. Yes,
> > plot.xts and supporting function now in xts-proper supercede the
> > plot.xts in xtsExtra.
> > > How would you recommend installing this? By devtools::install_github,
> > > for example?
> > install_github is a fine approach
> > install_github('joshuaulrich/xts')
> > > Finally, I depend critically on xts for daily work. Does this beta
> > > release impact the non-graphics code?
> > We use this code for production-critical tasks every day.
> > The core of xts has the usual smattering of optimizations and bug fixes,
> > and has not changed substantially from a user perspective.
> > plot.xts is substantially different from the old plot.xts, but the old
> > plot.xts didn't do much, which is why most users used chartSeries or
> > plot.zoo.
> > > What's the appropriate level of caution here?
> > As always, YMMV, but this code has been under development and in use for
> > over a year, and I at least consider it stable and ready for prime time.
> > Regards,
> > Brian
> > --
> > Brian G. Peterson
> > http://braverock.com/brian/
> > Ph: 773-459-4973
> > IM: bgpbraverock
> > _______________________________________________
> > 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.
> *Don't quit. Suffer now and live the rest of your life as a champion.*
> – Muhammad Ali
> *The world is full of obvious things which nobody by any chance observes.*
> – Sir Arthur Conan Doyle
> [[alternative HTML version deleted]]
> R-SIG-Finance at r-project.org mailing list
> -- 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.
[[alternative HTML version deleted]]
More information about the R-SIG-Finance