FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support factor variables for x and/or y when numeric variable is used to set color by BeppoBrem · Pull Request #2404 · plotly/plotly.R · GitHub

Support factor variables for x and/or y when numeric variable is used to set color - #2404

Open
BeppoBrem wants to merge 3 commits into
plotly:masterfrom
BeppoBrem:fixFactorColour
Open

Support factor variables for x and/or y when numeric variable is used to set color#2404
BeppoBrem wants to merge 3 commits into
plotly:masterfrom
BeppoBrem:fixFactorColour

Conversation

BeppoBrem commented Nov 30, 2024
edited
Loading

Copy link
Copy Markdown

Support factor variables for x and/or y when numeric variable is used to set color.

See #1883 and also https://stackoverflow.com/questions/45217616/colors-in-plotly-range-not-meaningful-for-factors. The proposed workaround to convert to character before plotting does not honour the order of the factor levels and hence is only a partial solution.

Code can be tested e.g. via:
plot_ly(iris, y = ~Sepal.Width, x = ~Species, color = ~Sepal.Length, type = 'scatter', mode = 'markers')

Copy link
Copy Markdown
Author

@cpsievert Can you advise on next steps to get this PR reviewed and eventually merged? Many thanks!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL