unsubscribe On Tue, Apr 12, 2016 at 3:00 AM, <r-sig-gui-requ...@r-project.org> wrote:
> Send R-SIG-GUI mailing list submissions to > r-sig-gui@r-project.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://stat.ethz.ch/mailman/listinfo/r-sig-gui > or, via email, send a message with subject or body 'help' to > r-sig-gui-requ...@r-project.org > > You can reach the person managing the list at > r-sig-gui-ow...@r-project.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of R-SIG-GUI digest..." > > > Today's Topics: > > 1. [VC++ calling R] How to create a real-time interactive > ticking time-series chart using dygraph via RInside? (Mike Deanza) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 11 Apr 2016 15:03:27 +0000 > From: Mike Deanza <mikedea...@outlook.com> > To: "r-sig-gui@r-project.org" <r-sig-gui@r-project.org>, > "r-sig-fina...@r-project.org" <r-sig-fina...@r-project.org>, > "r-de...@r-project.org" <r-de...@r-project.org>, > "r-package-de...@r-project.org" <r-package-de...@r-project.org>, > "r-h...@r-project.org" <r-h...@r-project.org> > Subject: [R-gui] [VC++ calling R] How to create a real-time > interactive ticking time-series chart using dygraph via RInside? > Message-ID: > < > cy1pr0201mb1818d3aebc4f2b87b0a9c328c3...@cy1pr0201mb1818.namprd02.prod.outlook.com > > > > Content-Type: text/plain; charset="UTF-8" > > Hi all, > > > I am trying to figure out how to do this in R and I need your help. > > > My journey started from something like the following: > > > > http://stackoverflow.com/questions/11365857/real-time-auto-updating-incremental-plot-in-r/1#1 > > > n=1000 > df=data.frame(time=1:n,y=runif(n)) > window=100 > for(i in 1:(n?\window)) { > flush.console() > plot(df$time,df$y,type='l',xlim=c(i,i+window)) > Sys.sleep(.09) > } > > > Then I wanted to make it nicer looking so I went to dygraph. > > > And then, I would like to be able to live send tick data from within > Visual C++ so I started to investigate RInside. > > > Following the example code here: > > > http://dirk.eddelbuettel.com/papers/useR2009RcppRInside.pdf > > > I can open an RInside object in VC++, and then send some data to it, and > then execute some command in it, and then get data back. > > > It is really great. > > > However, is there a way to have the real-time updating ticking plots to be > drawn on dygraph inside RInside? > > > It turns out the dygraph package tends to draw onto a browser. That makes > the real-time updating pretty slow. > > > Is there a way to set the dygraph to plot to a GUI window in VC++? For > example, a QT or MFC GUI window? > > > My working environment is Win7 64bit ,with VS 2013 and VS2015, QT 5.3 > 32bit. > > > Could anybody please shed some lights on me? > > > Thanks a lot! > > > > > > > > [[alternative HTML version deleted]] > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > R-SIG-GUI mailing list > R-SIG-GUI@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-gui > > ------------------------------ > > End of R-SIG-GUI Digest, Vol 107, Issue 1 > ***************************************** > -- Sasha Goodman http://www.sashagoodman.com [[alternative HTML version deleted]] _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-gui