Skip to content

Commit

Permalink
Fix link to grob docs
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty committed Oct 25, 2024
1 parent 2290522 commit d5c5e1a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/patterns.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' @param alpha The transparency to use for the fill of the pattern.
#' @param bg The background color to use for the pattern.
#'
#' @return `geo_grob()` returns a [grob][grid::grid.grob] object with a single
#' @return `geo_grob()` returns a \link[grid:gTree]{grob} object with a single
#' instance of the desired pattern. `geo_pattern()` returns a
#' [GridPattern][grid::patterns] object with a repeated instance of the
#' desired pattern.
Expand Down Expand Up @@ -74,6 +74,7 @@ geo_pattern <- function(code, scale = 2,
#' @importFrom grid editGrob rectGrob gList gTree gPath gpar
geo_grob <- function(code,
col = NULL, fill = NULL, alpha = NULL, bg = "white") {
geo_grobs <- getExportedValue("deeptimedata", "geo_grobs")
code <- as.character(code)
# get the grob for the given code
code <- gsub("(-.*)?", "", code)
Expand Down
2 changes: 1 addition & 1 deletion man/geo_pattern.Rd

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

2 changes: 1 addition & 1 deletion man/get_scale_data.Rd

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

0 comments on commit d5c5e1a

Please sign in to comment.