canvas - R graphics device for the HTML canvas element


About canvas
SVN access
Check results
Package R docs

canvas is an R package that implements the javascript CanvasRenderingContext2D API. Note: the following pages are best viewed in Firefox 3.1 or later. Visit the canvas gallery.

The following image is actually an HTML <canvas> element and was created by this bit of javascript. Why might you want this? When compressed the bit of javascript is 20k in size (with comments) so you may want to use it for your dynamic web plots.

The below image was created with the R png(type='cairo') command and is 32k in size. Compare to the above. There's alot going on in this image, so simpler images may compress to even smaller sizes.

If the images are exactly the same, then you can bet that this package is complete.