Skip to content

Commit

Permalink
4.0.1 - Fixed incorrect documentation in add_pilot_titles
Browse files Browse the repository at this point in the history
  • Loading branch information
olihawkins committed Jul 19, 2022
1 parent f08cc16 commit 532e68c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: pilot
Type: Package
Title: A minimal ggplot2 theme with an accessible discrete color palette
Version: 4.0.0
Version: 4.0.1
Authors@R:
person(
given = "Oliver",
Expand All @@ -16,7 +16,6 @@ Imports:
ggplot2,
magrittr,
patchwork,
purrr,
rlang,
stringr
RoxygenNote: 7.1.2
RoxygenNote: 7.2.0
16 changes: 8 additions & 8 deletions R/themes.R
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ theme_pilot <- function (

# Function to add correctly aligned titles ------------------------------------

#' Add titles to a plot using the Cpilot theme style
#' Add titles to a plot using the pilot theme style
#'
#' Use this function to add titles to a plot that uses \code{theme_pilot}.
#' Using this functin to set the title and/or subtitle will ensure that title
Expand All @@ -404,19 +404,19 @@ theme_pilot <- function (
#' @param subtitle A string containing the subtitle to add to the plot. Use
#' NULL if you do not want a subtitle.
#' @param title_family A string indicating the font-family to use for the
#' title. The default is "National-LFSN Semibd".
#' title. The default depends on the operating system.
#' @param subtitle_family A string indicating the font-family to use for the
#' subtitle. The default is "National-LFSN Book".
#' subtitle. The default depends on the operating system.
#' @param title_size An integer indicating the font size to use for the title
#' in points. The default is 18 points.
#' in points. The default is 17 points.
#' @param subtitle_size An integer indicating the font size to use for the
#' subtitle in points. The default is 14 points.
#' subtitle in points. The default is 12 points.
#' @param title_color An RGB hex string indicating the color to use for the
#' title. The default is "#006548".
#' title. The default is "#404040".
#' @param subtitle_color An RGB hex string indicating the color to use for the
#' subtitle. The default is "#006548".
#' subtitle. The default is "#404040".
#' @param background_color An RGB hex string indicating the color to use for
#' the background. The default is "#f0eeed".
#' the background. The default is "#ffffff".
#' @return A copy of the input plot with a title and/or subtitle added.
#' @export

Expand Down
16 changes: 8 additions & 8 deletions man/add_pilot_titles.Rd

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

0 comments on commit 532e68c

Please sign in to comment.