Animation via gridSVG


library(gridSVG)
...
grid.lines(x=grid.animate(unit(0.5, "npc"),
                          unit(x, "native"),
                          duration=5, rep=TRUE),
           y=grid.animate(unit(1, "npc"),
                          unit(1, "npc") - 
                          unit(abs(y), "native"),
                          duration=5, rep=TRUE))
grid.circle(x=grid.animate(unit(x, "native"),
                           duration=5, rep=TRUE),
            y=grid.animate(unit(1, "npc") - 
                           unit(abs(y), "native"),
                           duration=5, rep=TRUE),
            r=unit(1, "mm"),
            gp=gpar(fill="black"))
...
gridToSVG()







Previous
Next
Overview
The Structure of R Graphics
R graphics in PNG
R graphics in PNG
R graphics in JPEG
R graphics in JPEG
R graphics in SVG
R graphics in SVG
Inaccessible SVG Features
Taking Advantage of SVG
The gridSVG Package
The gridSVG Package
Transparency via gridSVG
Transparency via gridSVG
Hyperlinks via gridSVG
Hyperlinks via gridSVG
Animation via gridSVG
Animation via gridSVG
Animation via gridSVG
Summary