[Rd] how to draw scatter plots (etc) with streaming data

MacQueen, Don macqueen1 at llnl.gov
Fri Feb 28 17:59:46 CET 2014

I'm not sure whether R-help or R-devel is appropriate...

But here's a little simulation to help get you started with the plotting

plot( c(1,100) , c(-6,6), type='n')
for (x in 1:100) {points(x, rnorm(1)) ; Sys.sleep(1)}


Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550

On 2/27/14 4:01 PM, "Desi Three" <desithree at yahoo.com> wrote:

>I am working with R for few weeks and I am trying to use it for my
>following scenario.
>1)I have a java code that is receiving streaming data on a thread
>2) am hoping to instantiate R some how (may use one of rjava,jri,rserv;
>not yet sure which one is right)
>3) how can I draw scatter plot with this streaming data. Should I
>recreate plot with newly created data frame? If so, I am getting data at
>every second and recreating plots may not be efficient. I would like to
>have a solution in R, where I will add this new data to existing plots.
>I am looking to draw plots in R, because I am going to represent this
>data in multiple graphs (including the output of regression graphs every
>10 mins). I looked into shiny package, but shiny (as I understand)
>doesn't take external data sets
>	[[alternative HTML version deleted]]
>R-devel at r-project.org mailing list

More information about the R-devel mailing list