g2d.setColor(Color.WHITE);
g2d.setBackground(Color.WHITE);
g2d.fill(g2d.getDeviceConfiguration().getBounds());
AwtGraphicsDevice driver = new AwtGraphicsDevice(g2d);
topLevelContext.getSingleton(GraphicsDevices.class).setActive(new GraphicsDevice(driver));
try {
eval("barplot(c(1,2,3), main='Distribution', xlab='Number')");
} finally {
FileOutputStream fos = new FileOutputStream("target/simplestPossible.png");