grantmcdermott / tinyplot

Lightweight extension of the base R graphics system
https://grantmcdermott.com/tinyplot
Apache License 2.0
226 stars 7 forks source link

related ximage for matrix plots #115

Closed mdsumner closed 7 months ago

mdsumner commented 8 months ago

I just wanted to ping here with ximage - I know that extensions here won't be in scope in the near future, but I was very happy to find plot2 and see some of the inconsistencies and gaps fixed up (add=TRUE omghoddd thank you!!!!). Maybe others are looking for the same for image() as well, so please excuse the post here.

{ximage} is probably the single best move I've ever made in R, and while it's not for everyone it consolidates a lot of gaps that live in the image()/rasterImage() zone and that are only partially addressed by a growing number of "spatial" packages that don't help my needs.

I'll be exploring and watching the progress of plot2 and hope to provide a bit more of stance of how it might relate to ximage in future.

grantmcdermott commented 8 months ago

SGTM and thanks for sharing; ximage looks cool.

FWIW, you're right that extensions aren't currently in scope. But this package was build with (other) package developers in mind, so a goal is to make it easy to repurpose the scaffolding. One example is the draw_legend() function, which we've exported so that others can use it more easily with their own plot methods.

grantmcdermott commented 7 months ago

Closing since I don't think there's anything to do right now. On a quasi-related spatial note, though: I recently added support for type = "polygon" if you end up playing around with spatial vector types (instead of rasters) down the road.