You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! geom_marquee() errors out when the label is empty or contains only blank characters. The error message is not too informative, either. In comparison, geom_text() and geom_label() do not complain and print the label even if it's blank.
library(ggplot2)
library(marquee)
ggplot(data.frame(x=0, y=0, label="")) +
geom_marquee(aes(x, y, label=label))
#> Error in `geom_marquee()`:#> ! Problem while converting geom to grob.#> ℹ Error occurred in the 1st layer.#> Caused by error in `if (nrow(x$shape) > 0) ...`:#> ! argument is of length zero
Hi! geom_marquee() errors out when the label is empty or contains only blank characters. The error message is not too informative, either. In comparison, geom_text() and geom_label() do not complain and print the label even if it's blank.
Created on 2024-12-30 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: