<div dir="ltr"><div>Hello,</div><div><br></div><div>I&#39;m now testing Ruby Interop with R by generating ggplot graphics.  On a previous post I was told to make a call to awt() and then &#39;print&#39; the plot.  All this is working fine.  My question:</div><div><br></div><div>Is there a way to clear the awt panel to send another plot?  Is there a set of APIs to control the output or do I need to end my Ruby script and start a new one? <br></div><div><br></div><div>I tried to call awt() a second time after a sleep(5), but I got a null pointer exception (could be a bug in my code.. did not investigate)</div><div><br></div><div>Thanks<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Rodrigo Botafogo<br><br></div></div></div>