Recent Bookmarks

Archives

Building my first Shiny application with ggplot

In trying to get a grip on the newly released Shiny library for R I simply rewrote the example from the tutorial to work with ggplot. The code is taken from the Shiny Tutorial.

I did not make any changes to ui.R provided in the tutorial. The rewritten server.R is below.

[...]

Visualizing data with ggplot from Python

Using my rudimentary knowledge of Python, I was interested in exploring the use of rpy2 to eventually be able to bring together spatial data analysis done in Python, with some higher level tools in R – in this case the powerful graphics library ggplot2 to visualize the results.

My setup is Mac OS 10.7.3, Python [...]

Great circles on a recentered worldmap, in ggplot

Even though several examples of great circle visualizations exist by now, I had not seen the code of one made with ggplot2. Both solutions offered, here using plot and here using lattice, basically loop through the great circle lines ordered from low to high number of flights and overplot the lines with fewer counts, which [...]