Skip to content

more flexibility when plotting single-channel image #28

@HelenaLC

Description

@HelenaLC

Comparing the Python vs. R version below, I wonder whether we could support:

  1. Showing values as is, with a scale_color_gradientn() type of legend where colors can be specified by the user.
  2. Inverting the image such that col="black" would give auto-contrasted black intensities over white background.

Not sure how trivial this is to implement, but leaving the thought here...

  1. Somewhat related, there is currently no way to drop the legend, since there is a new_scale() call after rendering the image layer. Perhaps a legend=T/F argument in plotImage() would suffice to address this.

(screenshots from https://helenalc.github.io/SpatialData.demo/code/csama.html)

Image Image

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