ggplotly() failed when labels or title were a factor, because nchar()… by dmurdoch · Pull Request #1773 · plotly/plotly.R · GitHub
Skip to content

ggplotly() failed when labels or title were a factor, because nchar()…#1773

Merged
cpsievert merged 2 commits intoplotly:masterfrom
dmurdoch:master
May 19, 2020
Merged

ggplotly() failed when labels or title were a factor, because nchar()…#1773
cpsievert merged 2 commits intoplotly:masterfrom
dmurdoch:master

Conversation

@dmurdoch
Copy link
Copy Markdown
Contributor

… doesn't like factors. This PR adds nchar0(), which converts its argument to character before counting chars, and fixes #1772.

@cpsievert
Copy link
Copy Markdown
Collaborator

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.

Conversion of discrete labels fails if they come from a factor

2 participants