R/filter_ggstatsplot_subtitle.R
filter_ggstatsplot_subtitle.RdFilter ggstatsplot subtitle to show selected statistics only
filter_ggstatsplot_subtitle(p, stats_idx = c(1, 3, 4, 7))ggstatsplot object with filtered subtitle
p <- ggstatsplot::ggscatterstats(
data = mtcars,
x = disp,
y = mpg
)
p_filtered <- filter_ggstatsplot_subtitle(p, stats_idx = c(1,3))
print(p_filtered)
#> `stat_xsidebin()` using `bins = 30`. Pick better value `binwidth`.
#> `stat_ysidebin()` using `bins = 30`. Pick better value `binwidth`.