Skip to content

add support for differenc rescalers for the channels #13

@Raoul-Kima

Description

@Raoul-Kima

Since the different channels might serve to visualize very different things, they sometimes need different rescalers.
As far as I can see this currently is not possible, since:

  1. the rescaler is called on the individual channels data rather then the color_spec vector.
  2. nor is it not possible to specify different rescalers for the different channels.
  3. nor is the rescaler given any info about which channel it is currently being invoked on.

I currently have a project where I want to make use of this feature, because 1 channel contains outliers and must thus be scaled based on quantiles rather then minimum and maximum to give a useful visualisation, whereas the other channel must be guaranteed to include all extreme values and is therefore scaled based on min/max.
As a sidenote: ggplot does not naturally support scaling based on quantiles, as the only info about the data which is passed to the rescaler is the min and max (e.g. when the rescaler is invoked in the legend construction, where no actual data is passed). I'm circumventing this by scoping the full dataset into the rescaler in a separate channel.

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