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 problem is that you need to provide a surface - i.e. for each value of x and y you should only have one z value. I've tweaked the docs and added an message to detect this case, but I suspect you're looking for a different geom (or need to do some preprocessing first).
It wasn't really much of a problem for me, because the geom_raster(), geom_tile(), and geom_rect() functions are so flexible & powerful that I could just use them to accomplish the nearly same thing, and then effectively make a "filled contour", like your last example on the docs:
v + geom_raster(aes(fill = density)) + geom_contour(colour = "white").
(Except without the + geom_contour(colour = "white")... removing the geom_countour() does not impact the quality of the plot too much.)
locked as resolved and limited conversation to collaborators
Jun 19, 2018