From macqueen1 at llnl.gov  Fri Feb 28 17:59:46 2014
From: macqueen1 at llnl.gov (MacQueen, Don)
Date: Fri, 28 Feb 2014 16:59:46 +0000
Subject: [Rd] how to draw scatter plots (etc) with streaming data
In-Reply-To: <1393545702.84707.YahooMailNeo@web121203.mail.ne1.yahoo.com>
References: <1393545702.84707.YahooMailNeo@web121203.mail.ne1.yahoo.com>
Message-ID: <CF35FF55.ED822%macqueen1@llnl.gov>

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
part:

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

-Don


-- 
Don MacQueen

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





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
>https://stat.ethz.ch/mailman/listinfo/r-devel



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