Description Usage Arguments Note Examples
The image shows an image file. Use ghtml
with the
"img" tag to show a url
1 2 3 |
filename |
an image file. |
dirname |
ignored. |
size |
A vector passed to |
handler |
optional handler bound via
|
action |
optional value to paramaterize handler |
container |
parent container |
... |
passed along to |
width |
a pre-specified width (in pixels) for the widget |
height |
a pre-specified height (in pixels) for the widget |
ext.args |
A list of extra arguments to pass to the ExtJS constructor |
requires tempdir to be mapped to a specific url, as this
is assumed by get_tempfile
and
get_tempfile_url
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | w <- gwindow("hello", renderTo="replaceme")
sb <- gstatusbar("Powered by gWidgetsWWW and Rook", cont=w)
g <- ggroup(cont=w, horizontal=FALSE)
f <- tempfile()
png(f)
hist(rnorm(100))
dev.off()
i <- gimage(f, container=g)
b <- gbutton("click", cont=g, handler=function(h,...) {
f <- tempfile()
png(f)
hist(rnorm(100))
dev.off()
svalue(i) <- f
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.