-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: expose palette
in discrete position scales
#5770
Comments
This looks useful :) Wondering whether this argument should be called Or maybe the logic is a function that creates a palette uses |
I don't think it is worth the hassle renaming the |
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: