Skip to content

695 debug sample size #985

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions R/ggbetweenstats-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@
inherit.aes = FALSE,
parse = TRUE,
!!!centrality.label.args
) + # adding sample size labels to the x axes
scale_x_discrete(labels = unique(centrality_df$n.expression))
)
}

#' @title Adding `geom_signif` to `ggplot`
Expand Down
5 changes: 4 additions & 1 deletion R/ggbetweenstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,14 @@ ggbetweenstats <- function(
}

# plot -----------------------------------
# Transform the data to obtain sample sizes
centrality_df <- suppressWarnings(centrality_description(data, {{ x }}, {{ y }}, ...))

plot_comparison <- ggplot(data, mapping = aes({{ x }}, {{ y }})) +
exec(geom_point, aes(color = {{ x }}), !!!point.args) +
exec(geom_boxplot, !!!boxplot.args, outlier.shape = NA) +
exec(geom_violin, !!!violin.args)
exec(geom_violin, !!!violin.args) + # adding sample size labels to the x axes
scale_x_discrete(labels = unique(centrality_df$n.expression))

# centrality tagging -------------------------------------

Expand Down
Loading