Skip to content

Color aesthetic mapping syntax #1430

@Mattriks

Description

@Mattriks

The current syntax that is allowed for color mapping includes:

  • color=[colorant"red"] (works with some, but not all, Geoms)
  • color=["group label"] see example here
  • color="population" or color=:population # refers to a column in a DataFrame
  • color=3 # refers to a column in a DataFrame
  • color=Col.value() or color=Col.index() for wide-format data

So color="red" has multiple possible meanings.
Here and below are options for a new syntax.

Option 1)

  • color=["red"] (also color=[1]) are always group labels, and color="red" is a color or dataframe column

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions