Skip to content

Is there a reason that gratia:::plot_penalty uses geom_raster not geom_tile #392

Description

@millerdl-CEH

Hi Gavin,

I'm plotting some simple penalties with gratia::draw and they come out pretty icky because of geom_raster (i.e., what looks like anti-aliasing per cell but that blurs the whole matrix, at least with PDF output). I guess geom_tile will plot the cells crisply, but is slow for larger penalty matrices.

Would it be possible to supply a geom= option or somesuch for draw to allow the user to specify this? Also perhaps it's worth doing something where for matrices below a certain dimension it uses tile, but raster beyond that?

I can submit a patch if you think it's worth doing, I just wanted to check there wasn't some other reason before I do so.

cheers,
--dave

PS. yes, I am avoiding writing a talk.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions