-
Notifications
You must be signed in to change notification settings - Fork 164
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
Vectorized input to element_text()
is not officially supported
#455
Comments
Yes, I have the same warning. Do you have the same problem as mine? The style of the "Number of censoring" is ok? My question here: #456 |
No, I get vertical bars for number of censoring, so that does not seem to be an issue. |
I have the same warning. |
I think the issue may be more than an annoying warning. Is ph.ecog a factor variable in your dataset? Try checking whether your risk table has the correct groups listed against each row in the risk table. See my recent post for an example of this error: |
Risk table looks correct. ph.ecog is coded as numeric, although it strictly speaking is a categorical variable, but forcing it as a factor does not change anything. |
@rfbrondum Thanks for confirming that your factored version is not impacted by whatever issue is present in my case! |
report the same issue as well |
I report the same issue as well. |
The warning concerns these lines of codes Lines 317 to 323 in acff36f
element_text() now issues a warning when vectorized arguments are provided, as in colour = c("red", "green", "blue"). Such use is discouraged and not officially supported. I'm looking for a best solution to replace these lines.
|
fixed now, thanks! |
Expected behavior
No warning. Plots seem to work fine, but it would be nice not to get an error.
Actual behavior
When plotting a risk table with for more than one factor level I get a warning saying: "Vectorized input to
element_text()
is not officially supported. Results may be unexpected or may change in future versions of ggplot2. "Steps to reproduce the problem
session_info()
The text was updated successfully, but these errors were encountered: