Some Interesting Packages in R: swfDevice, RGoogleTrends, FlashMXML, SVGAnnotation

[This article was first published on Keep on Fighting! » R Language, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

I love R because there are always exciting new packages which can be far beyond your imagination. Here I’d like to introduce a couple of packages that look really awesome:

1. swfDevice: R graphics device for SWF output (by Cameron Bracken)

This package is still at a pre-alpha stage but you can see a sketch now in R-Forge: https://r-forge.r-project.org/projects/swfdevice/

Its author, Cameron, certainly knows well that I will be excited to see it, because I’ve been waiting for a long long time for the REAL Flash animation output in R. What I’ve done in my animation package is simply using SWF Tools to combine several “static” pictures (PNG or PDF, …) into a naive Flash animation — by “naive” I mean there is no interaction or real dynamic stuff in the Flash animation. Hopefully Cameron will provide a useful tool to create genuine Flash animations directly from R (with the help of the library libming).

By the way, I have to mention that the tikzDevice package by Cameron and another author is also fantastic for generating high-quality graphics LaTeX.

2. RGoogleTrends: Query and download Google Trends data in R

Ever heard of Google Trends? Duncan Temple Lang released an R package named “RGoogleTrends” that allows you to download Google Trends data directly from R. Basically this package uses RCurl to log in your Google account and send queries to get Google Trends data. Well, you may ask “why bother using a package since I can manually download the data by myself?”; just imagine R can automatically and dynamically do it for you, so you don’t have to open the web page every day.

3. FlashMXML and SVGAnnotation: New graphics devices for R

They are also written by Duncan Temple Lang. FlashMXML can record R graphics in MXML (a kind of XML language) and we can compile the XML file to Flash output. SVGAnnotation enables us to save R graphics in SVG format, which also supports animation. The function animate() will be of great help to my animation package, I think.

You may check the Omegahat website for more interesting packages: http://www.omegahat.org

Related Posts

To leave a comment for the author, please follow the link and comment on their blog: Keep on Fighting! » R Language.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)