optional filename storing canvas output
width of canvas in pixels
height of canvas in pixels
parent container for processing object
a regular, non-interactive R device, such as
gcanvas widget provides the screen space
to display the graphic.
svalue<- method is used to update the graphic. By default
the background color for a canvas device is transparent, so graphs
will layer on top of each other. To avoid this, specify a background
color using hex notation, e.g.,
bg="#ffffff" for white.
gcanvas widget can be used in a GUI, as underlying
subwindows of a GUI, so this is a poor choice for using in a window
that can be dismissed and re-opened.
gcanvas constructor and the
canvas device have width and height arguments. These should be
the same, but it is up to the user to ensure this.
This replaces the
gprocessingjs widget that isn't working as of version 0.8.0
Returns a proto object with class gCanvas.
The canvas device package
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.