teunbrand / ggnomics

A small project to add ggplot2 extensions
https://teunbrand.github.io/ggnomics/
Other
80 stars 4 forks source link

Rotated Raster #28

Closed teunbrand closed 5 years ago

teunbrand commented 5 years ago

Would probably be nice if one could give the input of geom_raster() to a geom function, and specify a rotation angle, shear or 2x2 matrix to transform the output using linear algebra, outputting the pixels as small polygons.

teunbrand commented 5 years ago

This is probably most generally implemented as a pixel-to-polygon parameterising version of geom_raster() combined with a position function that can rotate x and y values.

teunbrand commented 5 years ago

This is now possible in the dev branch by combining geom_polygonraster() in combination with position_lineartrans().