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

gt_plt_summary generates multiple "length 1, but the data has n rows" warnings #131

Open
laresbernardo opened this issue Jun 28, 2024 · 0 comments
Assignees

Comments

@laresbernardo
Copy link

Every time I use gt_plt_summary() it generates and prints several times the following warnings:

Warning in geom_point(data = NULL, aes(x = rng_vals[2], y = 1), color = "transparent",  :
  All aesthetics have length 1, but the data has 208 rows.
ℹ Please consider using `annotate()` or provide this layer with data containing a single
  row.

For this reproducible example, it prints 22 times:

gtExtras::gt_plt_summary(mtcars)

I see this is happening with 0.5.0 (CRAN version) and 0.5.0.9005 (Github version) as well.

Would appreciate a fix so that I don't have to wrap it with suppressWarnings(print(...)). Thanks!

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

2 participants