TidierOrg / TidierPlots.jl

Tidier data visualization in Julia, modeled after the ggplot2 R package.
MIT License
223 stars 8 forks source link

Request to Add geom_raster Feature of ggplot2 to TidierPlots.jl #127

Open Jigyasu4indp opened 1 month ago

Jigyasu4indp commented 1 month ago

Dear TidierPlots.jl development team,

I was unable to find the geom_raster feature in TidierPlots.jl. It is possible that this feature already exists, but I might have missed it. Could you please let me know which function includes the geom_raster feature?

If it is not yet included, I kindly request that you consider adding this feature in a future update.

Thank you in advance for your help and all the excellent work on this package!"

rdboyes commented 1 month ago

Thanks for trying out tidierplots! Does geom_tile do what you need, or is there a reason you need geom_raster specifically?

https://tidierorg.github.io/TidierPlots.jl/latest/examples/generated/geoms/geom_tile/

Jigyasu4indp commented 1 month ago

I tried geom_tile, but it does not show the legend. Does it also support geom_sf? Could you please suggest a solution?

Jigyasu4indp commented 1 month ago

How can I show the color legend in this plot from this link and position it differently, while also having support for geom_sf?

Jigyasu4indp commented 1 month ago

If possible, please include the features available in this link: https://tmieno2.github.io/R-as-GIS-for-Economists/geom-raster.html.

rdboyes commented 1 month ago

geom_sf is unlikely to be added anytime soon (unless someone else wants to work on it!), since it would require an different implementation in julia and isn't part of base ggplot2. Makie does have support for maps so it is doable though.

Legend improvements will happen sooner - we have an active issue for that: #106

Jigyasu4indp commented 1 week ago

I think geom_sf is a part of ggplot2. Please see the https://ggplot2.tidyverse.org/reference/ggsf.html