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

Translation of values for ggplot2 size and stroke #80

Open
ijlyttle opened this issue Dec 27, 2019 · 0 comments
Open

Translation of values for ggplot2 size and stroke #80

ijlyttle opened this issue Dec 27, 2019 · 0 comments

Comments

@ijlyttle
Copy link
Contributor

This concerns when we specify a value, as opposed to a field (variable) to map to:

Points:

  • ggplot2: size refers to the width of the point in mm
  • Vega-Lite: size refers to the area of the point in pixels

Other marks:

  • ggplot2: size refers to the width of a line stroke in mm
  • Vega-Lite: strokeWidth refers to the width of a line in pixels

Given a standard dpi of 96, we ought to be able to come up with straightforward translations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant