Skip to content

Commit ca747d8

Browse files
Fix discrete orientation example in stat_summary (tidyverse#4152)
* replace cyl with factor(cyl) * Regenerate docs Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.com>
1 parent b4bc293 commit ca747d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/stat-summary.r

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#' d + stat_summary(fun.data = "mean_cl_boot", colour = "red", size = 2)
5454
#'
5555
#' # Orientation follows the discrete axis
56-
#' ggplot(mtcars, aes(mpg, cyl)) +
56+
#' ggplot(mtcars, aes(mpg, factor(cyl))) +
5757
#' geom_point() +
5858
#' stat_summary(fun.data = "mean_cl_boot", colour = "red", size = 2)
5959
#'

man/stat_summary.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)