diff --git a/R/stat-summary.r b/R/stat-summary.r index bdc7fea548..e315e3fe1b 100644 --- a/R/stat-summary.r +++ b/R/stat-summary.r @@ -53,7 +53,7 @@ #' d + stat_summary(fun.data = "mean_cl_boot", colour = "red", size = 2) #' #' # Orientation follows the discrete axis -#' ggplot(mtcars, aes(mpg, cyl)) + +#' ggplot(mtcars, aes(mpg, factor(cyl))) + #' geom_point() + #' stat_summary(fun.data = "mean_cl_boot", colour = "red", size = 2) #' diff --git a/man/stat_summary.Rd b/man/stat_summary.Rd index 516b8a570e..204c0358c1 100644 --- a/man/stat_summary.Rd +++ b/man/stat_summary.Rd @@ -186,7 +186,7 @@ d <- ggplot(mtcars, aes(cyl, mpg)) + geom_point() d + stat_summary(fun.data = "mean_cl_boot", colour = "red", size = 2) # Orientation follows the discrete axis -ggplot(mtcars, aes(mpg, cyl)) + +ggplot(mtcars, aes(mpg, factor(cyl))) + geom_point() + stat_summary(fun.data = "mean_cl_boot", colour = "red", size = 2)