inst/Examples/ch-gWidgets/ex-gWidgets-graph-as-image.R

###################################################
### code chunk number 53: Controls.Rnw:299-306
###################################################
f <- tempfile()
png(f)                                  # not gWidgetstcltk!
hist(rnorm(100))
dev.off()
#
window <- gwindow("Example to show a graphic")
gimage(basename(f), dirname(f), cont = window)
jverzani/ProgGUIinR documentation built on May 20, 2019, 5:17 a.m.