[R-pkgs] New R graphics package targeting HTML 5 canvas element

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[R-pkgs] New R graphics package targeting HTML 5 canvas element

Jeffrey Horner

canvas is a new R package implementing a graphics device that emits
javascript code conforming to the HTML 5 CanvasRenderingContext2D
interface. Available on CRAN soon, but you can get it here immediately:


If you have access to a beta web browser like Firefox 3.1 or later, you
can see example plots here:


Clicking on one of the plots will take you to a comparator page where
the plot is rendered twice, once with the canvas package and once with
the png(type='cairo') function.

The implementation is almost complete, however there are some parts that
need work like font metrics and dotted/dashed lines. If anyone is
interested in helping flesh out the remaining bits, I'd be much obliged.



R-packages mailing list
[hidden email]

[hidden email] mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.