Skip to content

Commit

Permalink
also update vignettes for the API change
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Jul 19, 2023
1 parent 41ee18e commit 4fcf250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
11 changes: 5 additions & 6 deletions vignettes/web_only/faq.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ Here is a workaround using `{ggsignif}`:
library(ggsignif)
## displaying only one comparison
ggbetweenstats(mtcars, cyl, wt, pairwise.comparisons = FALSE) +
ggbetweenstats(mtcars, cyl, wt, pairwise.display = "none") +
geom_signif(comparisons = list(c("4", "6")), test.args = list(exact = FALSE))
```

Expand Down Expand Up @@ -329,7 +328,7 @@ library(ggsignif)
mtcars$cyl <- as.factor(mtcars$cyl)
# creating the base plot
p <- ggbetweenstats(mtcars, cyl, wt, pairwise.comparisons = FALSE)
p <- ggbetweenstats(mtcars, cyl, wt, pairwise.display = "none")
# using `pairwise_comparisons()` function to create a data frame with results
df <- pairwise_comparisons(mtcars, cyl, wt) %>%
Expand Down Expand Up @@ -385,7 +384,7 @@ ggwithinstats(
x = condition,
y = desire,
results.subtitle = FALSE,
pairwise.comparisons = FALSE
pairwise.display = "none"
)
# after
Expand All @@ -395,7 +394,7 @@ ggwithinstats(
y = desire,
point.args = list(alpha = 0),
results.subtitle = FALSE,
pairwise.comparisons = FALSE
pairwise.display = "none"
)
```

Expand Down Expand Up @@ -445,7 +444,7 @@ grouped_ggbetweenstats(
wt,
grouping.var = am,
results.subtitle = FALSE,
pairwise.comparisons = FALSE,
pairwise.display = "none",
# modify further with `{ggplot2}` functions
ggplot.component = list(
scale_color_manual(values = paletteer::paletteer_c("viridis::viridis", 3)),
Expand Down
5 changes: 0 additions & 5 deletions vignettes/web_only/ggwithinstats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ ggwithinstats(
type = "nonparametric", ## type of statistical test
xlab = "Condition", ## label for the x-axis
ylab = "Desire to kill an artrhopod", ## label for the y-axis
effsize.type = "biased", ## type of effect size
sphericity.correction = FALSE, ## don't display sphericity corrected dfs and p-values
pairwise.comparisons = TRUE, ## display pairwise comparisons
mean.plotting = TRUE, ## whether the mean is to be displayed
mean.color = "darkblue", ## color for mean
package = "yarrr", ## package from which color palette is to be taken
palette = "info2", ## choosing a different color palette
title = "Comparison of desire to kill bugs",
Expand Down

0 comments on commit 4fcf250

Please sign in to comment.