Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace itemize with describe to fix check notes in R-devel #56

Merged
merged 2 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: nflplotR
Title: NFL Logo Plots in 'ggplot2'
Version: 1.2.0.9008
Version: 1.2.0.9009
Authors@R:
person("Sebastian", "Carl", , "[email protected]", role = c("aut", "cre"))
Description: A set of functions to visualize National Football League
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* The function `geom_nfl_logos()` now plots the NFL logo, if `team_abbr == "NFL"`. (#51)
* Added the new function `gt_nfl_cols_label()` that renders logos and wordmarks in column labels of {gt} tables. (#52)
* The function `gt_nfl_cols_label()` now allows rendering of player headshots in column labels. Thanks Steven Patton @spatto12 for the PR. (#55)
* Adjust lists in documentation as the next R version checks for correctly formatted lists. (#56)

# nflplotR 1.2.0

Expand Down
22 changes: 11 additions & 11 deletions R/geom_nfl_headshots.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
#' @inheritParams ggplot2::geom_point
#' @section Aesthetics:
#' `geom_nfl_headshots()` understands the following aesthetics (required aesthetics are in bold):
#' \itemize{
#' \item{**x**}{ - The x-coordinate.}
#' \item{**y**}{ - The y-coordinate.}
#' \item{**player_gsis**}{ - The players' NFL gsis id.}
#' \item{`alpha = NULL`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
#' \item{`colour = NULL`}{ - The image will be colorized with this colour. Use the special character `"b/w"` to set it to black and white. For more information on valid colour names in ggplot2 see <https://ggplot2.tidyverse.org/articles/ggplot2-specs.html?q=colour#colour-and-fill>}
#' \item{`angle = 0`}{ - The angle of the image as a numerical value between 0° and 360°.}
#' \item{`hjust = 0.5`}{ - The horizontal adjustment relative to the given x coordinate. Must be a numerical value between 0 and 1.}
#' \item{`vjust = 0.5`}{ - The vertical adjustment relative to the given y coordinate. Must be a numerical value between 0 and 1.}
#' \item{`width = 1.0`}{ - The desired width of the image in `npc` (Normalised Parent Coordinates).
#' \describe{
#' \item{**x**}{The x-coordinate.}
#' \item{**y**}{The y-coordinate.}
#' \item{**player_gsis**}{The players' NFL gsis id.}
#' \item{`alpha = NULL`}{The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
#' \item{`colour = NULL`}{The image will be colorized with this colour. Use the special character `"b/w"` to set it to black and white. For more information on valid colour names in ggplot2 see <https://ggplot2.tidyverse.org/articles/ggplot2-specs.html?q=colour#colour-and-fill>}
#' \item{`angle = 0`}{The angle of the image as a numerical value between 0° and 360°.}
#' \item{`hjust = 0.5`}{The horizontal adjustment relative to the given x coordinate. Must be a numerical value between 0 and 1.}
#' \item{`vjust = 0.5`}{The vertical adjustment relative to the given y coordinate. Must be a numerical value between 0 and 1.}
#' \item{`width = 1.0`}{The desired width of the image in `npc` (Normalised Parent Coordinates).
#' The default value is set to 1.0 which is *big* but it is necessary
#' because all used values are computed relative to the default.
#' A typical size is `width = 0.075` (see below examples).}
#' \item{`height = 1.0`}{ - The desired height of the image in `npc` (Normalised Parent Coordinates).
#' \item{`height = 1.0`}{The desired height of the image in `npc` (Normalised Parent Coordinates).
#' The default value is set to 1.0 which is *big* but it is necessary
#' because all used values are computed relative to the default.
#' A typical size is `height = 0.1` (see below examples).}
Expand Down
22 changes: 11 additions & 11 deletions R/geom_nfl_logos.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
#' @inheritParams ggplot2::geom_point
#' @section Aesthetics:
#' `geom_nfl_logos()` understands the following aesthetics (required aesthetics are in bold):
#' \itemize{
#' \item{**x**}{ - The x-coordinate.}
#' \item{**y**}{ - The y-coordinate.}
#' \item{**team_abbr**}{ - The team abbreviation. Should be one of [`valid_team_names()`]. The function tries to clean team names internally by calling [`nflreadr::clean_team_abbrs()`]. Note: `"NFL"`, `"AFC"`, `"NFC"` are valid abbreviations!}
#' \item{`alpha = NULL`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
#' \item{`colour = NULL`}{ - The image will be colorized with this colour. Use the special character `"b/w"` to set it to black and white. For more information on valid colour names in ggplot2 see <https://ggplot2.tidyverse.org/articles/ggplot2-specs.html?q=colour#colour-and-fill>}
#' \item{`angle = 0`}{ - The angle of the image as a numerical value between 0° and 360°.}
#' \item{`hjust = 0.5`}{ - The horizontal adjustment relative to the given x coordinate. Must be a numerical value between 0 and 1.}
#' \item{`vjust = 0.5`}{ - The vertical adjustment relative to the given y coordinate. Must be a numerical value between 0 and 1.}
#' \item{`width = 1.0`}{ - The desired width of the image in `npc` (Normalised Parent Coordinates).
#' \describe{
#' \item{**x**}{The x-coordinate.}
#' \item{**y**}{The y-coordinate.}
#' \item{**team_abbr**}{The team abbreviation. Should be one of [`valid_team_names()`]. The function tries to clean team names internally by calling [`nflreadr::clean_team_abbrs()`]. Note: `"NFL"`, `"AFC"`, `"NFC"` are valid abbreviations!}
#' \item{`alpha = NULL`}{The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
#' \item{`colour = NULL`}{The image will be colorized with this colour. Use the special character `"b/w"` to set it to black and white. For more information on valid colour names in ggplot2 see <https://ggplot2.tidyverse.org/articles/ggplot2-specs.html?q=colour#colour-and-fill>}
#' \item{`angle = 0`}{The angle of the image as a numerical value between 0° and 360°.}
#' \item{`hjust = 0.5`}{The horizontal adjustment relative to the given x coordinate. Must be a numerical value between 0 and 1.}
#' \item{`vjust = 0.5`}{The vertical adjustment relative to the given y coordinate. Must be a numerical value between 0 and 1.}
#' \item{`width = 1.0`}{The desired width of the image in `npc` (Normalised Parent Coordinates).
#' The default value is set to 1.0 which is *big* but it is necessary
#' because all used values are computed relative to the default.
#' A typical size is `width = 0.075` (see below examples).}
#' \item{`height = 1.0`}{ - The desired height of the image in `npc` (Normalised Parent Coordinates).
#' \item{`height = 1.0`}{The desired height of the image in `npc` (Normalised Parent Coordinates).
#' The default value is set to 1.0 which is *big* but it is necessary
#' because all used values are computed relative to the default.
#' A typical size is `height = 0.1` (see below examples).}
Expand Down
22 changes: 11 additions & 11 deletions R/geom_nfl_wordmarks.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
#' @inheritParams ggplot2::geom_point
#' @section Aesthetics:
#' `geom_nfl_logos()` understands the following aesthetics (required aesthetics are in bold):
#' \itemize{
#' \item{**x**}{ - The x-coordinate.}
#' \item{**y**}{ - The y-coordinate.}
#' \item{**team_abbr**}{ - The team abbreviation. Should be one of [`valid_team_names()`]. The function tries to clean team names internally by calling [`nflreadr::clean_team_abbrs()`]}
#' \item{`alpha = NULL`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
#' \item{`colour = NULL`}{ - The image will be colorized with this colour. Use the special character `"b/w"` to set it to black and white. For more information on valid colour names in ggplot2 see <https://ggplot2.tidyverse.org/articles/ggplot2-specs.html?q=colour#colour-and-fill>}
#' \item{`angle = 0`}{ - The angle of the image as a numerical value between 0° and 360°.}
#' \item{`hjust = 0.5`}{ - The horizontal adjustment relative to the given x coordinate. Must be a numerical value between 0 and 1.}
#' \item{`vjust = 0.5`}{ - The vertical adjustment relative to the given y coordinate. Must be a numerical value between 0 and 1.}
#' \item{`width = 1.0`}{ - The desired width of the image in `npc` (Normalised Parent Coordinates).
#' \describe{
#' \item{**x**}{The x-coordinate.}
#' \item{**y**}{The y-coordinate.}
#' \item{**team_abbr**}{The team abbreviation. Should be one of [`valid_team_names()`]. The function tries to clean team names internally by calling [`nflreadr::clean_team_abbrs()`]}
#' \item{`alpha = NULL`}{The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
#' \item{`colour = NULL`}{The image will be colorized with this colour. Use the special character `"b/w"` to set it to black and white. For more information on valid colour names in ggplot2 see <https://ggplot2.tidyverse.org/articles/ggplot2-specs.html?q=colour#colour-and-fill>}
#' \item{`angle = 0`}{The angle of the image as a numerical value between 0° and 360°.}
#' \item{`hjust = 0.5`}{The horizontal adjustment relative to the given x coordinate. Must be a numerical value between 0 and 1.}
#' \item{`vjust = 0.5`}{The vertical adjustment relative to the given y coordinate. Must be a numerical value between 0 and 1.}
#' \item{`width = 1.0`}{The desired width of the image in `npc` (Normalised Parent Coordinates).
#' The default value is set to 1.0 which is *big* but it is necessary
#' because all used values are computed relative to the default.
#' A typical size is `width = 0.1` (see below examples).}
#' \item{`height = 1.0`}{ - The desired height of the image in `npc` (Normalised Parent Coordinates).
#' \item{`height = 1.0`}{The desired height of the image in `npc` (Normalised Parent Coordinates).
#' The default value is set to 1.0 which is *big* but it is necessary
#' because all used values are computed relative to the default.
#' A typical size is `height = 0.1` (see below examples).}
Expand Down
22 changes: 11 additions & 11 deletions man/geom_from_path.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions man/geom_lines.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions man/geom_nfl_headshots.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading