You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea behind exposing a palette to discrete position scales is that the palette can be used to set custom spacings between discrete variables. Currently the 'palette' of discrete position scales is essentially seq_along(), and the ask here is to open this up to other functions that can translate discrete variables to continuous positions.
To give an example, let's say I have the following plot with a fake continuous scale separating groups of clarity:
I don't think it is worth the hassle renaming the palette argument for this particular request as palette is a pre-existing argument to the scale constructors. But yeah the pal_*() functions from {scales} are function factories whose results are valid input for the palette arguments in ggplot2.
The idea behind exposing a palette to discrete position scales is that the palette can be used to set custom spacings between discrete variables. Currently the 'palette' of discrete position scales is essentially
seq_along()
, and the ask here is to open this up to other functions that can translate discrete variables to continuous positions.To give an example, let's say I have the following plot with a fake continuous scale separating groups of clarity:
Created on 2024-03-12 with reprex v2.1.0
I'd like to express a similar plot in the following way:
I'd imagine it just uses the discrete expansion rules and not show minor breaks in the panel grid.
The text was updated successfully, but these errors were encountered: