Skip to content

Commit 95f3ecd

Browse files
committed
update examples
1 parent a284ec4 commit 95f3ecd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

R/theme-elements.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
#' scale_color_nfl(type = "secondary") +
3939
#' scale_fill_nfl(alpha = 0.4) +
4040
#' theme_minimal() +
41-
#' theme(axis.text.x = element_nfl_logo())
41+
#' theme(axis.text.x.bottom = element_nfl_logo())
4242
#'
4343
#' # use logos for y-axis
4444
#' ggplot(df, aes(y = teams, x = random_value)) +
4545
#' geom_col(aes(color = teams, fill = teams), width = 0.5) +
4646
#' scale_color_nfl(type = "secondary") +
4747
#' scale_fill_nfl(alpha = 0.4) +
4848
#' theme_minimal() +
49-
#' theme(axis.text.y = element_nfl_logo())
49+
#' theme(axis.text.y.left = element_nfl_logo())
5050
#'
5151
#' #############################################################################
5252
#' # Headshot Examples
@@ -74,13 +74,13 @@
7474
#' ggplot(dfh, aes(x = player_gsis, y = random_value)) +
7575
#' geom_col(width = 0.5) +
7676
#' theme_minimal() +
77-
#' theme(axis.text.x = element_nfl_headshot(size = 1))
77+
#' theme(axis.text.x.bottom = element_nfl_headshot(size = 1))
7878
#'
7979
#' # use headshots for y-axis
8080
#' ggplot(dfh, aes(y = player_gsis, x = random_value)) +
8181
#' geom_col(width = 0.5) +
8282
#' theme_minimal() +
83-
#' theme(axis.text.y = element_nfl_headshot(size = 1))
83+
#' theme(axis.text.y.left = element_nfl_headshot(size = 1))
8484
#'
8585
#' # Restore old options
8686
#' options(old)

man/element.Rd

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

0 commit comments

Comments
 (0)