-
Notifications
You must be signed in to change notification settings - Fork 1
Description
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:
- the rescaler is called on the individual channels data rather then the color_spec vector.
- nor is it not possible to specify different rescalers for the different channels.
- 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.