Skip to content

pairwise display disappears when limiting y-axis #966

@debbiemaycry

Description

@debbiemaycry

Hi! Terribly sorry if this has already been asked or has a simple solution. I didn't find it in the issues section. ggbetweenstats seems to add values to the y-axis even beyond the limit of the variable. I added code to limit the y-axis values, however, that then makes the pairwise comparisons above disappear. I already tried 3 ways to limit the y-axis and they all make it disappear. Do you have a solution for that? Thanks in advance.

My code:

ggbetweenstats( data = ds3_clean_90, x = condition_concept_fact, y = Schuldfaehigkeit_um, type = "parametric", # ANOVA or Kruskal-Wallis var.equal = TRUE, # ANOVA or Welch ANOVA plot.type = "box", pairwise.comparisons = TRUE, pairwise.display = "significant", centrality.plotting = TRUE, centrality.label.args = list(size = 3, nudge_x = 0.4, nudge_y = 0.2, segment.linetype = 4, min.segment.length = 0), bf.message = FALSE, xlab = "Conceptualization", ylab = "Culpability", p.adjust.method = "bonferroni" ) + ggplot2::scale_y_continuous( limits = (c(0, 5)))

Plot with no y-axis limit
image

Plot once y-axis limit is added
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    question ❓Further information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions