Blog Archives

Custom axis transformations in ggplot2

To apply a data transformation on an axis in a ggplot, you can use coordinate transformations. For more detail see the ggplot2 documentation. A number of coordinate transformations is available, including log10 and sqrt. However, if you want to perform

Tagged with: ,
Posted in R stuff

Drawing polar centered spatial maps using ggplot2

Drawing maps of the polar regions can be done using square spatial maps. A small example says more than a thousand words:

The final call to ggplot results in the following picture: A much more natural way of plotting

Tagged with: , , , ,
Posted in R stuff