Closed IndrajeetPatil closed 3 years ago
> ggstatsplot:::cat_label_df(data = ggstatsplot:::cat_counter(data = df, x = label))
# A tibble: 4 x 3
label counts perc
<chr> <int> <dbl>
1 29.4% 59 29.4
2 31.3% 63 31.3
3 14.9% 30 14.9
4 24.4% 49 24.4
df <- dplyr::filter(mtcars, am == "0")
ggstatsplot::ggpiestats(df, am, cyl)
#> Registered S3 method overwritten by 'broom.mixed':
#> method from
#> tidy.gamlss broom
#> Registered S3 methods overwritten by 'lme4':
#> method from
#> cooks.distance.influence.merMod car
#> influence.merMod car
#> dfbeta.influence.merMod car
#> dfbetas.influence.merMod car
#> Warning in broom.mixed::tidy(x, ...): restarting interrupted promise evaluation
#> Warning in broom.mixed::tidy(x, ...): restarting interrupted promise evaluation
#> Warning in broom.mixed::tidy(x, ...): restarting interrupted promise evaluation
Created on 2020-10-12 by the reprex package (v0.3.0.9001)
df <- dplyr::filter(mtcars, am == "0")
ggstatsplot::ggpiestats(df, am, cyl)
#> Registered S3 method overwritten by 'broom.mixed':
#> method from
#> tidy.gamlss broom
#> Registered S3 methods overwritten by 'lme4':
#> method from
#> cooks.distance.influence.merMod car
#> influence.merMod car
#> dfbeta.influence.merMod car
#> dfbetas.influence.merMod car
#> Warning in broom.mixed::tidy(x, ...): restarting interrupted promise evaluation
#> Warning in broom.mixed::tidy(x, ...): restarting interrupted promise evaluation
#> Warning in broom.mixed::tidy(x, ...): restarting interrupted promise evaluation
Created on 2020-11-04 by the reprex package (v0.3.0)
One solution: rename the internal column from label
to .label
to avoid a possible clash with user-defined column.
Resolved!
df <- dplyr::filter(mtcars, am == "0")
ggstatsplot::ggpiestats(df, am, cyl)
Created on 2020-11-25 by the reprex package (v0.3.0.9001)
Created on 2020-09-27 by the reprex package (v0.3.0.9001)