You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The map_layout() function in panel.r assumes that if it gets an empty data frame, then the data should be inherited from plot_data. The problem is that there's no way to tell whether the empty data frame is passed in, or if it was just not specified in the layer. When the geom is not specified, this is what happens: layer$new calls fortify.NULL(), which returns data.frame(), and it's this data frame that can't be distinguished from an empty data frame passed in to the layer.
One possible solution is to make fortify.NULL() add an attribute to the data frame, and then test for that attribute in map_layout().
For example,
should display black points.
This can occur when subsetting and is annoying.
The text was updated successfully, but these errors were encountered: