Omegahat Statistical Computing

Ideas for statistical computing

  • Recent Comments

    karenyng on Data Science & Data E…
    omegahat on Rllvm
    Jason on Rllvm
    Charlie on Rllvm
    Kleber Rocha on Package Releases
  • Topics

  • Advertisements

RKMLDevice – R plots in KML

Posted by omegahat on March 12, 2010

One thing I have been tinkering with recently is the ability to create R plots as KML.  This is implemented in the RKMLDevice package on Omegahat. One creates a regular graphics device with the function kmlDevice() and issue regular R commands to generate the plot.  One can then display the resulting document in Google Earth (either stand-alone or the browser plugin) and the R plot will appear centered at the coordindates specified when creating the device.  This is not a PNG image, but the graphical elements in the plot are regular KML elements, i.e. Placemark elements.  This means they scale well. Also, they appear in the Folder for the plot and one can toggle their visibilities. There are some examples at


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: