Skip to content

Commit a52a712

Browse files
committed
Documentation updates
1 parent 34c0a8c commit a52a712

16 files changed

+50
-49
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: mlbplotR
22
Type: Package
33
Title: Create 'ggplot2' and 'gt' Visuals with Major League Baseball Logos
4-
Version: 1.1.0.9005
4+
Version: 1.1.0.9006
55
Authors@R:
66
c(
77
person(given = "Sebastian",

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Update AZ logos and team colors (v1.1.0.9003)
66
* Update `gt_*` functions to be used in gt row group labels and accept unquoted column names, add `gt_fmt_milb_logo()` (v1.1.0.9004)
77
* Add `gt_` and `geom_` functions for MiLB dot team logos and headshots (v1.1.0.9005)
8+
* Documentation updates (v1.1.0.9006)
89

910
# mlbplotR 1.1.0
1011

R/geom_cap_logos.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
#'
1212
#' @inheritParams ggplot2::geom_point
1313
#' @section Aesthetics:
14-
#' `geom_mlb_dark_cap_logos()` and `geom_mlb_light_cap_logos()` understand the following aesthetics (required aesthetics are in bold):
14+
#' `geom_mlb_dark_cap_logos()` and `geom_mlb_light_cap_logos()` understand the following aesthetics:
1515
#' \describe{
16-
#' \item{**x**}{ - The x-coordinate.}
17-
#' \item{**y**}{ - The y-coordinate.}
18-
#' \item{**team_abbr**}{ - The team abbreviation. Need to use Savant's abbreviation.}
16+
#' \item{`x`}{ - The x-coordinate. Required.}
17+
#' \item{`y`}{ - The y-coordinate. Required.}
18+
#' \item{`team_abbr`}{ - The team abbreviation. Need to use Savant's abbreviation. Required.}
1919
#' \item{`alpha = NULL`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
2020
#' \item{`colour = NULL`}{ - The image will be colourized 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>}
2121
#' \item{`angle = 0`}{ - The angle of the image as a numerical value between 0° and 360°.}

R/geom_from_path.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
#'
66
#' @inheritParams ggplot2::geom_point
77
#' @section Aesthetics:
8-
#' `geom_mlb_logos()` understands the following aesthetics (required aesthetics are in bold):
8+
#' `geom_mlb_logos()` understands the following aesthetics:
99
#' \describe{
10-
#' \item{**x**}{ - The x-coordinate.}
11-
#' \item{**y**}{ - The y-coordinate.}
12-
#' \item{**path**}{ - a file path, url, raster object or bitmap array. See [`magick::image_read()`] for further information.}
10+
#' \item{`x`}{ - The x-coordinate. Required.}
11+
#' \item{`y`}{ - The y-coordinate. Required.}
12+
#' \item{`path`}{ - a file path, url, raster object or bitmap array. See [`magick::image_read()`] for further information. Required.}
1313
#' \item{`alpha = NULL`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
1414
#' \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>}
1515
#' \item{`angle = 0`}{ - The angle of the image as a numerical value between 0° and 360°.}

R/geom_lines.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
#' the default plot specification.
1414
#' @section Aesthetics:
1515
#' `geom_median_lines()` and `geom_mean_lines()` understand the following
16-
#' aesthetics (at least one of the bold aesthetics is required):
16+
#' aesthetics (at least one of `v_var` and `h_var` are required):
1717
#' \describe{
18-
#' \item{**v_var**}{ - The variable for which to compute the median/mean that is drawn as vertical line.}
19-
#' \item{**h_var**}{ - The variable for which to compute the median/mean that is drawn as horizontal line.}
18+
#' \item{`v_var`}{ - The variable for which to compute the median/mean that is drawn as vertical line.}
19+
#' \item{`h_var`}{ - The variable for which to compute the median/mean that is drawn as horizontal line.}
2020
#' \item{`alpha = NA`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
2121
#' \item{`color = "black"`}{ - The color of the drawn lines.}
2222
#' \item{`linetype = 2`}{ - The linetype of the drawn lines.}

R/geom_milb_logos.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#'
99
#' @inheritParams ggplot2::geom_point
1010
#' @section Aesthetics:
11-
#' `geom_milb_logos()`, `geom_milb_light_cap_logos()`, `geom_milb_dot_logos()` understand the following aesthetics (required aesthetics are in bold):
11+
#' `geom_milb_logos()`, `geom_milb_light_cap_logos()`, `geom_milb_dot_logos()` understand the following aesthetics:
1212
#' \describe{
13-
#' \item{**x**}{ - The x-coordinate.}
14-
#' \item{**y**}{ - The y-coordinate.}
15-
#' \item{**team_name**}{ - The team name. Need to use the full team name.}
13+
#' \item{`x`}{ - The x-coordinate. Required.}
14+
#' \item{`y`}{ - The y-coordinate. Required.}
15+
#' \item{`team_name`}{ - The team name. Need to use the full team name. Required.}
1616
#' \item{`alpha = NULL`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
1717
#' \item{`colour = NULL`}{ - The image will be colourized 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>}
1818
#' \item{`angle = 0`}{ - The angle of the image as a numerical value between 0° and 360°.}

R/geom_mlb_headshots.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#'
99
#' @inheritParams ggplot2::geom_point
1010
#' @section Aesthetics:
11-
#' `geom_mlb_headshots()`, `geom_mlb_dot_headshots()`, `geom_milb_dot_headshots()`, understand the following aesthetics (required aesthetics are in bold):
11+
#' `geom_mlb_headshots()`, `geom_mlb_dot_headshots()`, `geom_milb_dot_headshots()`, understand the following aesthetics:
1212
#' \describe{
13-
#' \item{**x**}{ - The x-coordinate.}
14-
#' \item{**y**}{ - The y-coordinate.}
15-
#' \item{**player_id**}{ - The players' MLB (Baseball Savant) id.}
13+
#' \item{`x`}{ - The x-coordinate. Required.}
14+
#' \item{`y`}{ - The y-coordinate. Required.}
15+
#' \item{`player_id`}{ - The players' MLBAM (Baseball Savant) id. Required.}
1616
#' \item{`na_headshot_to_logo = TRUE`}{ - Should NA/non-matches return the MLB logo
1717
#' instead of a grayed out blank headshot? Only used with `geom_mlb_headshots()`. Defaults to `TRUE`}
1818
#' \item{`alpha = NULL`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}

R/geom_mlb_logos.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
#'
1111
#' @inheritParams ggplot2::geom_point
1212
#' @section Aesthetics:
13-
#' `geom_mlb_logos()`, `geom_mlb_scoreboard_logos()`, and `geom_mlb_dot_logos()` understand the following aesthetics (required aesthetics are in bold):
13+
#' `geom_mlb_logos()`, `geom_mlb_scoreboard_logos()`, and `geom_mlb_dot_logos()` understand the following aesthetics:
1414
#' \describe{
15-
#' \item{**x**}{ - The x-coordinate.}
16-
#' \item{**y**}{ - The y-coordinate.}
17-
#' \item{**team_abbr**}{ - The team abbreviation. Need to use Savant's abbreviation.}
15+
#' \item{`x`}{ - The x-coordinate. Required.}
16+
#' \item{`y`}{ - The y-coordinate. Required.}
17+
#' \item{`team_abbr`}{ - The team abbreviation. Need to use Savant's abbreviation. Required.}
1818
#' \item{`alpha = NULL`}{ - The alpha channel, i.e. transparency level, as a numerical value between 0 and 1.}
1919
#' \item{`colour = NULL`}{ - The image will be colourized 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>}
2020
#' \item{`angle = 0`}{ - The angle of the image as a numerical value between 0° and 360°.}

R/gt_helpers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ gt_fmt_milb_dot_headshot <- function(gt_object,
436436
#' Replace Team Abbreviations/Player IDs With Images In Column Labels
437437
#'
438438
#' @description
439-
#' `gt_column_example` takes in a value of a team abbreviation or player id and
439+
#' `gt_mlb_column_labels` takes in a value of a team abbreviation or player id and
440440
#' converts the designated column to the corresponding image.
441441
#'
442442
#' @param value What team abbreviation/player id should be replaced with an image?

man/geom_cap_logos.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.

man/geom_from_path.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.

man/geom_lines.Rd

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

man/geom_milb_logos.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.

man/geom_mlb_headshots.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.

man/geom_mlb_logos.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.

man/gt_mlb_column_labels.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)