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
library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.3.1
ggplot(faithfuld, aes(eruptions, waiting, fill=density)) +
geom_raster() +
coord_polar()
#> Error in `geom_raster()`:#> ! Problem while converting geom to grob.#> βΉ Error occurred in the 1st layer.#> Caused by error in `draw_panel()`:#> ! `geom_raster()` only works with `coord_cartesian()`
While it shouldn't be too far-fetched to use geom_rect()'s drawing method to render this under non-linear coordinate systems. We could throw an informative message saying that we cannot render the data as a raster.