Skip to content

Commit

Permalink
Fix to ANOVA_design
Browse files Browse the repository at this point in the history
coord_cartesian creating error
  • Loading branch information
arcaldwell49 committed Apr 27, 2020
1 parent 477cca2 commit 9bfcfa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ANOVA_design.R
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ ANOVA_design <- function(design, n, mu, sd, r = 0,
geom_point(position = position_dodge(width = 0.9), shape = 10, size = 5, stat = "identity") + #Personal preference for sd -- ARC
geom_errorbar(aes(ymin = mu - sd, ymax = mu + sd),
position = position_dodge(width = 0.9), size = .6, width = .3) +
coord_cartesian(ylim = c(min(mu) - sd, max(mu) + sd)) +
#coord_cartesian(ylim = c(min(mu) - max(sd), max(mu) + max(sd))) +
theme_bw(base_size = 16) + ggtitle("Means for each condition in the design")

} else {
Expand All @@ -416,7 +416,7 @@ ANOVA_design <- function(design, n, mu, sd, r = 0,
geom_point(position = position_dodge(width = 0.9), shape = 10, size = 5, stat = "identity") + #Personal preference for sd -- ARC
geom_errorbar(aes(ymin = mu - sd, ymax = mu + sd),
position = position_dodge(width = 0.9), size = .6, width = .3) +
coord_cartesian(ylim = c(min(mu) - sd, max(mu) + sd)) +
#coord_cartesian(ylim = c(min(mu) - sd, max(mu) + sd)) +
theme_bw() + ggtitle("Means for each condition in the design")
}
if (plot == TRUE) {
Expand Down

0 comments on commit 9bfcfa1

Please sign in to comment.