This PR does not really solve an open issue, but does make GeomSf more consistent with other geoms.
Briefly, sf_grob() was a wrapper for sf::st_as_grob() that did two things that are usually handled by Geom classes.
It removed missing data, which is usually handled by Geom$handle_na(), and wrangles the graphical parameters for a grob, which is usually done in Geom$draw_panel().
This PR divides these two responsibilities to the appropriate places in the class.
This PR does not really solve an open issue, but does make
GeomSf
more consistent with other geoms.Briefly, class.
sf_grob()
was a wrapper forsf::st_as_grob()
that did two things that are usually handled by Geom classes. It removed missing data, which is usually handled byGeom$handle_na()
, and wrangles the graphical parameters for a grob, which is usually done inGeom$draw_panel()
. This PR divides these two responsibilities to the appropriate places in the