mdsumner / ggpolypath

Polygons with holes for ggplot2
https://mdsumner.github.io/ggpolypath/
17 stars 1 forks source link

fix draw_panel function definition #2

Closed paleolimbot closed 7 years ago

paleolimbot commented 7 years ago

It appears that the ggproto function definitions for new versions of ggplot needs to include "self" as the first argument (https://github.com/tidyverse/ggplot2/blob/master/R/geom-.r#L92), or ggplot will throw an error ("Error: GeomPolypath was built with an incompatible version of ggproto. Please reinstall the package that provides this extension."). I couldn't get this message to go away until I added "self" to the function definition, but perhaps this is specific to my system. Thoughts?

paleolimbot commented 7 years ago

Just kidding, it seems it took a while to build GeomPolypath. Sorry!