Skip to content
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

geom_textpath() always draw a empty box when label is "" #76

Open
Hy4m opened this issue May 4, 2022 · 0 comments
Open

geom_textpath() always draw a empty box when label is "" #76

Hy4m opened this issue May 4, 2022 · 0 comments

Comments

@Hy4m
Copy link

Hy4m commented May 4, 2022

Hi, thank you so much for writing such a nice package.
But I noticed that ggplot2::geom_text () is OK when label is empty, but geomtextpath::geom_textpath() always draws a blank box. The following is an example:

library(ggplot2)
  
## draw empty text with geom_text(), it's OK
df <- data.frame(x = 1, y = 1, label = "")
  
  ggplot(df, aes(x, y, label = label)) +
    geom_text()
  
## draw empty text with geom_textpath(), it always draw a empty box 
tt <- seq(0, 2*pi, length.out = 300)
df2 <- data.frame(x = cos(tt), y = sin(tt), label = "")
  ggplot(df2, aes(x, y, label = label)) +
    geomtextpath::geom_textpath()
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

No branches or pull requests

1 participant