Skip to content
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

Documentation: relate width/height to position aesthetics #5813

Closed
teunbrand opened this issue Mar 28, 2024 · 0 comments · Fixed by #5814
Closed

Documentation: relate width/height to position aesthetics #5813

teunbrand opened this issue Mar 28, 2024 · 0 comments · Fixed by #5814

Comments

@teunbrand
Copy link
Collaborator

teunbrand commented Mar 28, 2024

This issue is a proposal to include a little bit more details on how the x and width pairs and y and height pairs of aesthetics interact. I've seen enough confusion on this topic that I think this warrants a little section in ?aes_position.
Should basically point out:

  • x and y are point-based locations
  • width and height are length-based dimensions
  • location-based aesthetics have scales and respond to transformation
  • length-based aesthetics do not have scales and are applied after transformation
  • Give concrete example that x = 10, width = 2 equates to xmin = 9, xmax = 11 under identity scales, but to xmin = 1, xmax = 100 under log10-scales.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant