Skip to content

Commit e5c3892

Browse files
authored
Add changes from #4875 (#6049)
1 parent c8b8022 commit e5c3892

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

R/geom-path.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
#' @examples
3737
#' # geom_line() is suitable for time series
3838
#' ggplot(economics, aes(date, unemploy)) + geom_line()
39+
#' # separate by colour and use "timeseries" legend key glyph
3940
#' ggplot(economics_long, aes(date, value01, colour = variable)) +
40-
#' geom_line()
41+
#' geom_line(key_glyph = "timeseries")
4142
#'
4243
#' # You can get a timeseries that run vertically by setting the orientation
4344
#' ggplot(economics, aes(unemploy, date)) + geom_line(orientation = "y")

R/geom-text.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@
9898
#' scale_colour_discrete(l = 40)
9999
#' p + geom_label(aes(fill = factor(cyl)), colour = "white", fontface = "bold")
100100
#'
101-
#' p + geom_text(aes(size = wt))
101+
#' # Scale size of text, and change legend key glyph from a to point
102+
#' p + geom_text(aes(size = wt), key_glyph = "point")
102103
#' # Scale height of text, rather than sqrt(height)
103104
#' p +
104-
#' geom_text(aes(size = wt)) +
105+
#' geom_text(aes(size = wt), key_glyph = "point") +
105106
#' scale_radius(range = c(3,6))
106107
#'
107108
#' # You can display expressions by setting parse = TRUE. The

man/geom_path.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/geom_text.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/labeller.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)