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.
This concerns when we specify a value, as opposed to a field (variable) to map to:
Points:
sizerefers to the width of the point in mmsizerefers to the area of the point in pixelsOther marks:
sizerefers to the width of a line stroke in mmstrokeWidthrefers to the width of a line in pixelsGiven a standard dpi of 96, we ought to be able to come up with straightforward translations.