Perhaps nonsensically, I'd like to overlay a ggplot with an image, and then apply CSS effects to that image. I can think of two possible approaches:
- Create an
htmlwidgetthat saves the plot to a PNG, overlay the PNG with JS, and apply a CSS class to the image.
- Maybe the
magickpackage? I'm not an expert in its inner workings.
Is either option feasible? If not, is there a third way?