Skip to content

Instantly share code, notes, and snippets.

@timrandg
Created January 10, 2012 07:51
Show Gist options
  • Save timrandg/1587725 to your computer and use it in GitHub Desktop.
Save timrandg/1587725 to your computer and use it in GitHub Desktop.
require 'rinruby'
collection = []
r=RinRuby.new(:echo=>false)
10.times{collection << rand(10)}
r.y = collection
r.eval "plot(c(1:10), y)"
#need to sleep so that when the script ends, and R closes, the plot window won't close also
sleep 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment