Skip to content

Translation of values for ggplot2 size and stroke #80

@ijlyttle

Description

@ijlyttle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions