-
Notifications
You must be signed in to change notification settings - Fork 251
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
Color aesthetic mapping syntax #1430
Comments
Another example to keep in mind is |
Option 2 (typed"string" only syntax)
|
What about the following?
The first point seems important to me for consistency with other aesthetics and DataFrame indexing. |
I think my previous idea is too inconsistent with how Much better to keep the current behavior, where I like option 2, maybe with a shorthand |
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 herecolor="population"
orcolor=:population
# refers to a column in a DataFramecolor=3
# refers to a column in a DataFramecolor=Col.value()
orcolor=Col.index()
for wide-format dataSo
color="red"
has multiple possible meanings.Here and below are options for a new syntax.
Option 1)
color=["red"]
(alsocolor=[1]
) are always group labels, andcolor="red"
is a color or dataframe columnThe text was updated successfully, but these errors were encountered: