<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I stumbled over this as well in the
      past:<br>
      <br>
      When you run R code via `Polyglot.eval`, you're in non-interactive
      mode (similar to the `Rscript` command), so the output device
      defaults to svg (I think).<br>
      Just add an "awt()" call to your script, and it should work.<br>
      <br>
      - Roland<br>
      <br>
      On 08/01/2018 02:56 PM, Rodrigo Botafogo wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAKc=GCgK2L66YY0hu=GDQnJozRH6XCywyeNV8N9FB52qP-FSg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div>Hello...</div>
        <div><br>
        </div>
        <div>ggplot works fine in FastR, but if I try:</div>
        <div><br>
        </div>
        <div>Polyglot.eval("R", &lt;&lt;-R)<br>
            library('ggplot2')<br>
            ggplot(mtcars, aes(x=wt, y=mpg)) + geom_point()<br>
          R</div>
        <div><br>
        </div>
        <div>nothing happens... the code executes and exits, but no
          graphics.  How should this be done?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
          -- <br>
          <div dir="ltr" class="gmail_signature">Rodrigo Botafogo<br>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraalVM-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraalVM-Users@oss.oracle.com">GraalVM-Users@oss.oracle.com</a>
<a class="moz-txt-link-freetext" href="https://oss.oracle.com/mailman/listinfo/graalvm-users">https://oss.oracle.com/mailman/listinfo/graalvm-users</a></pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>