Modifying facet scales in ggplot2

by on February 27, 2018

There is a very old issue in ggplot2 about the ability to modify particular scales when using facet_wrap() or facet_grid(). I often have this problem when using lots of facets, as sometimes the labels overlap with eachother on some of the scales. Without a way to set the breaks on one particular scale, it’s hard […]

Verbifying nouns and using the pipe in ggplot2

by on February 27, 2018

There is a lot of talk about the ggplot2 package and the pipe. Should it be used? Some approaches, like the ggpipe package, replace many ggplot2 functions, adding the plot as the first argument so they can be used with the pipe. This ignores the fact that ggplot2 functions construct objects that can (and should) […]

Major ggspatial updates

by on March 28, 2017

I took the day to update ggspatial an old R project that was never published to CRAN. The idea is to create ggplot layer() calls from sp Spatial* objects using a consistent interface. Last year I wrote a blog post about how that might work, and while the usage hasn’t changed much, the implementation is […]

Holes in ggplot polygons

by on July 13, 2016

As part of my efforts to construct an R package connecting ggplot and Spatial objects, I came across an issue with ggplot involving holes in polygons. According to the collective knowledge of StackOverflow, it’s possible to make this happen by putting the coordinates in the correct clockwise/counterclockwise order, extending geom_polygon() somehow, or other really complicated […]

WP Facebook Like Send & Open Graph Meta powered by TutsKid.com.