diff --git a/DESCRIPTION b/DESCRIPTION index dfd184e..350bab9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -40,9 +40,9 @@ Imports: dplyr, stringr, farver, - hunspell -Remotes: - wch/Rttf2pt1, - wch/extrafont -RoxygenNote: 7.2.3 + hunspell, + Rttf2pt1, + extrafont +Roxygen: list(markdown = TRUE) +RoxygenNote: 7.3.3 VignetteBuilder: knitr diff --git a/R/ktheme-package.R b/R/ktheme-package.R index 8ac3369..b7511b2 100644 --- a/R/ktheme-package.R +++ b/R/ktheme-package.R @@ -1,22 +1,18 @@ -#' Theme and Theme Components for 'ggplot2' for KTH's graphical profile +#' Theme and Theme Components for ggplot2 for KTH's graphical profile #' -#' The core themes: `theme_kth_neo` uses Figtree and `theme_kth` uses Open Sans +#' The core themes: `theme_kth_neo` uses Figtree and `theme_kth` uses Open Sans. +#' There is an option `ktheme.loadfonts` which – if set to `TRUE` – will +#' call `extrafont::loadfonts()` to register non‑core fonts with R PDF & +#' PostScript devices. On Windows the same function registers the fonts +#' with the Windows graphics device. #' -#' There is an option `ktheme.loadfonts` which -- if set to `TRUE` -- will -#' call `extrafont::loadfonts()` to register non-core fonts with R PDF & PostScript -#' devices. If you are running under Windows, the package calls the same function -#' to register non-core fonts with the Windows graphics device. -#' -#' @md -#' @name ktheme -#' @docType package #' @keywords internal #' @import ggplot2 grid scales extrafont grDevices #' @importFrom magrittr %>% #' @importFrom gdtools set_dummy_conf #' @import rmarkdown knitr htmltools #' @importFrom tools file_path_sans_ext -NULL +"_PACKAGE" #' ktheme exported operators #' diff --git a/R/theme-kth.R b/R/theme-kth.R index 5988338..49481a0 100644 --- a/R/theme-kth.R +++ b/R/theme-kth.R @@ -75,9 +75,9 @@ theme_kth <- function(base_family="Open Sans", base_size = 11.5, if (inherits(grid, "character") | grid == TRUE) { - ret <- ret + theme(panel.grid=element_line(color=grid_col, size=0.2)) - ret <- ret + theme(panel.grid.major=element_line(color=grid_col, size=0.2)) - ret <- ret + theme(panel.grid.minor=element_line(color=grid_col, size=0.15)) + ret <- ret + theme(panel.grid=element_line(color=grid_col, linewidth=0.2)) + ret <- ret + theme(panel.grid.major=element_line(color=grid_col, linewidth=0.2)) + ret <- ret + theme(panel.grid.minor=element_line(color=grid_col, linewidth=0.15)) if (inherits(grid, "character")) { if (regexpr("X", grid)[1] < 0) ret <- ret + theme(panel.grid.major.x=element_blank()) @@ -91,22 +91,22 @@ theme_kth <- function(base_family="Open Sans", base_size = 11.5, } if (inherits(axis, "character") | axis == TRUE) { - ret <- ret + theme(axis.line=element_line(color="#2b2b2b", size=0.15)) + ret <- ret + theme(axis.line=element_line(color="#2b2b2b", linewidth=0.15)) if (inherits(axis, "character")) { axis <- tolower(axis) if (regexpr("x", axis)[1] < 0) { ret <- ret + theme(axis.line.x=element_blank()) } else { - ret <- ret + theme(axis.line.x=element_line(color=axis_col, size=0.15)) + ret <- ret + theme(axis.line.x=element_line(color=axis_col, linewidth=0.15)) } if (regexpr("y", axis)[1] < 0) { ret <- ret + theme(axis.line.y=element_blank()) } else { - ret <- ret + theme(axis.line.y=element_line(color=axis_col, size=0.15)) + ret <- ret + theme(axis.line.y=element_line(color=axis_col, linewidth=0.15)) } } else { - ret <- ret + theme(axis.line.x=element_line(color=axis_col, size=0.15)) - ret <- ret + theme(axis.line.y=element_line(color=axis_col, size=0.15)) + ret <- ret + theme(axis.line.x=element_line(color=axis_col, linewidth=0.15)) + ret <- ret + theme(axis.line.y=element_line(color=axis_col, linewidth=0.15)) } } else { ret <- ret + theme(axis.line=element_blank()) @@ -117,9 +117,9 @@ theme_kth <- function(base_family="Open Sans", base_size = 11.5, ret <- ret + theme(axis.ticks.x = element_blank()) ret <- ret + theme(axis.ticks.y = element_blank()) } else { - ret <- ret + theme(axis.ticks = element_line(size=0.15)) - ret <- ret + theme(axis.ticks.x = element_line(size=0.15)) - ret <- ret + theme(axis.ticks.y = element_line(size=0.15)) + ret <- ret + theme(axis.ticks = element_line(linewidth=0.15)) + ret <- ret + theme(axis.ticks.x = element_line(linewidth=0.15)) + ret <- ret + theme(axis.ticks.y = element_line(linewidth=0.15)) ret <- ret + theme(axis.ticks.length = grid::unit(5, "pt")) } diff --git a/man/figures/README-unnamed-chunk-10-1.png b/man/figures/README-unnamed-chunk-10-1.png deleted file mode 100644 index bfb195f..0000000 Binary files a/man/figures/README-unnamed-chunk-10-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-11-1.png b/man/figures/README-unnamed-chunk-11-1.png deleted file mode 100644 index cbcb6ad..0000000 Binary files a/man/figures/README-unnamed-chunk-11-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-11-2.png b/man/figures/README-unnamed-chunk-11-2.png deleted file mode 100644 index c920136..0000000 Binary files a/man/figures/README-unnamed-chunk-11-2.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-12-1.png b/man/figures/README-unnamed-chunk-12-1.png deleted file mode 100644 index eb7b4fb..0000000 Binary files a/man/figures/README-unnamed-chunk-12-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-12-2.png b/man/figures/README-unnamed-chunk-12-2.png deleted file mode 100644 index daee488..0000000 Binary files a/man/figures/README-unnamed-chunk-12-2.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-13-1.png b/man/figures/README-unnamed-chunk-13-1.png deleted file mode 100644 index 7de6c10..0000000 Binary files a/man/figures/README-unnamed-chunk-13-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-13-2.png b/man/figures/README-unnamed-chunk-13-2.png deleted file mode 100644 index a06cbe5..0000000 Binary files a/man/figures/README-unnamed-chunk-13-2.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-3-1.png b/man/figures/README-unnamed-chunk-3-1.png deleted file mode 100644 index 575b310..0000000 Binary files a/man/figures/README-unnamed-chunk-3-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-3-2.png b/man/figures/README-unnamed-chunk-3-2.png deleted file mode 100644 index 68e8915..0000000 Binary files a/man/figures/README-unnamed-chunk-3-2.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-3-3.png b/man/figures/README-unnamed-chunk-3-3.png deleted file mode 100644 index 0f0daeb..0000000 Binary files a/man/figures/README-unnamed-chunk-3-3.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-3-4.png b/man/figures/README-unnamed-chunk-3-4.png deleted file mode 100644 index 4584acd..0000000 Binary files a/man/figures/README-unnamed-chunk-3-4.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-3-5.png b/man/figures/README-unnamed-chunk-3-5.png deleted file mode 100644 index a20278a..0000000 Binary files a/man/figures/README-unnamed-chunk-3-5.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-3-6.png b/man/figures/README-unnamed-chunk-3-6.png deleted file mode 100644 index 81be88a..0000000 Binary files a/man/figures/README-unnamed-chunk-3-6.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-3-7.png b/man/figures/README-unnamed-chunk-3-7.png deleted file mode 100644 index fb5fca2..0000000 Binary files a/man/figures/README-unnamed-chunk-3-7.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-4-1.png b/man/figures/README-unnamed-chunk-4-1.png deleted file mode 100644 index c8942d6..0000000 Binary files a/man/figures/README-unnamed-chunk-4-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-4-2.png b/man/figures/README-unnamed-chunk-4-2.png deleted file mode 100644 index d5f84a5..0000000 Binary files a/man/figures/README-unnamed-chunk-4-2.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-4-3.png b/man/figures/README-unnamed-chunk-4-3.png deleted file mode 100644 index 3168049..0000000 Binary files a/man/figures/README-unnamed-chunk-4-3.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-5-1.png b/man/figures/README-unnamed-chunk-5-1.png deleted file mode 100644 index e86d6f1..0000000 Binary files a/man/figures/README-unnamed-chunk-5-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-5-1.png.orig b/man/figures/README-unnamed-chunk-5-1.png.orig deleted file mode 100644 index 579e3f5..0000000 Binary files a/man/figures/README-unnamed-chunk-5-1.png.orig and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-5-2.png b/man/figures/README-unnamed-chunk-5-2.png deleted file mode 100644 index 418bb4b..0000000 Binary files a/man/figures/README-unnamed-chunk-5-2.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-6-1.png b/man/figures/README-unnamed-chunk-6-1.png deleted file mode 100644 index 8b6de6f..0000000 Binary files a/man/figures/README-unnamed-chunk-6-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-6-2.png b/man/figures/README-unnamed-chunk-6-2.png deleted file mode 100644 index 4c4443e..0000000 Binary files a/man/figures/README-unnamed-chunk-6-2.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-7-1.png b/man/figures/README-unnamed-chunk-7-1.png deleted file mode 100644 index 4a45c32..0000000 Binary files a/man/figures/README-unnamed-chunk-7-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-7-1.png.orig b/man/figures/README-unnamed-chunk-7-1.png.orig deleted file mode 100644 index 5ba8d55..0000000 Binary files a/man/figures/README-unnamed-chunk-7-1.png.orig and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-8-1.png b/man/figures/README-unnamed-chunk-8-1.png deleted file mode 100644 index 8f6070e..0000000 Binary files a/man/figures/README-unnamed-chunk-8-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-8-1.png.orig b/man/figures/README-unnamed-chunk-8-1.png.orig deleted file mode 100644 index 40331b2..0000000 Binary files a/man/figures/README-unnamed-chunk-8-1.png.orig and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-9-1.png b/man/figures/README-unnamed-chunk-9-1.png deleted file mode 100644 index 5281ffb..0000000 Binary files a/man/figures/README-unnamed-chunk-9-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-9-1.png.orig b/man/figures/README-unnamed-chunk-9-1.png.orig deleted file mode 100644 index 18ad4a7..0000000 Binary files a/man/figures/README-unnamed-chunk-9-1.png.orig and /dev/null differ diff --git a/man/ktheme-package.Rd b/man/ktheme-package.Rd new file mode 100644 index 0000000..52cf87f --- /dev/null +++ b/man/ktheme-package.Rd @@ -0,0 +1,27 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/ktheme-package.R +\docType{package} +\name{ktheme-package} +\alias{ktheme} +\alias{ktheme-package} +\title{Theme and Theme Components for ggplot2 for KTH's graphical profile} +\description{ +The core themes: \code{theme_kth_neo} uses Figtree and \code{theme_kth} uses Open Sans. +There is an option \code{ktheme.loadfonts} which – if set to \code{TRUE} – will +call \code{extrafont::loadfonts()} to register non‑core fonts with R PDF & +PostScript devices. On Windows the same function registers the fonts +with the Windows graphics device. +} +\author{ +\strong{Maintainer}: Markus Skyttner \email{markussk@kth.se} + +Authors: +\itemize{ + \item Gaël Serge Dubus \email{dubus@kth.se} + \item Tobias Jeppson \email{tjejp@kth.se} + \item Agne Larsson \email{agnel@kth.se} + \item David Minguillo \email{davidmin@kth.se} +} + +} +\keyword{internal} diff --git a/man/ktheme.Rd b/man/ktheme.Rd deleted file mode 100644 index 24dfcbf..0000000 --- a/man/ktheme.Rd +++ /dev/null @@ -1,16 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/ktheme-package.R -\docType{package} -\name{ktheme} -\alias{ktheme} -\title{Theme and Theme Components for 'ggplot2' for KTH's graphical profile} -\description{ -The core themes: \code{theme_kth_neo} uses Figtree and \code{theme_kth} uses Open Sans -} -\details{ -There is an option \code{ktheme.loadfonts} which -- if set to \code{TRUE} -- will -call \code{extrafont::loadfonts()} to register non-core fonts with R PDF & PostScript -devices. If you are running under Windows, the package calls the same function -to register non-core fonts with the Windows graphics device. -} -\keyword{internal} diff --git a/man/scale_kth.Rd b/man/scale_kth.Rd index 3f29b58..2dd9da2 100644 --- a/man/scale_kth.Rd +++ b/man/scale_kth.Rd @@ -17,11 +17,11 @@ scale_fill_kth(...) Arguments passed on to \code{\link[ggplot2:discrete_scale]{ggplot2::discrete_scale}} \describe{ \item{\code{aesthetics}}{The names of the aesthetics that this scale works with.} - \item{\code{scale_name}}{The name of the scale that should be used for error messages -associated with this scale.} + \item{\code{scale_name}}{\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}} The name of the scale +that should be used for error messages associated with this scale.} \item{\code{palette}}{A palette function that when called with a single integer argument (the number of levels in the scale) returns the values that -they should take (e.g., \code{\link[scales:hue_pal]{scales::hue_pal()}}).} +they should take (e.g., \code{\link[scales:pal_hue]{scales::pal_hue()}}).} \item{\code{name}}{The name of the scale. Used as the axis or legend title. If \code{waiver()}, the default, the name of the scale is taken from the first mapping used for that aesthetic. If \code{NULL}, the legend title will be @@ -35,7 +35,20 @@ omitted.} as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation. }} - \item{\code{labels}}{One of: + \item{\code{minor_breaks}}{One of: +\itemize{ +\item \code{NULL} for no minor breaks +\item \code{waiver()} for the default breaks (none for discrete, one minor break +between each major break for continuous) +\item A numeric vector of positions +\item A function that given the limits returns a vector of minor breaks. Also +accepts rlang \link[rlang:as_function]{lambda} function notation. When +the function has two arguments, it will be given the limits and major +break positions. +}} + \item{\code{labels}}{One of the options below. Please note that when \code{labels} is a +vector, it is highly recommended to also set the \code{breaks} argument as a +vector to protect against unintended mismatches. \itemize{ \item \code{NULL} for no labels \item \code{waiver()} for the default labels computed by the @@ -63,9 +76,11 @@ missing values be displayed as? Does not apply to position scales where \code{NA} is always placed at the far right.} \item{\code{drop}}{Should unused factor levels be omitted from the scale? The default, \code{TRUE}, uses the levels that appear in the data; -\code{FALSE} uses all the levels in the factor.} +\code{FALSE} includes the levels in the factor. Please note that to display +every level in a legend, the layer should use \code{show.legend = TRUE}.} \item{\code{guide}}{A function used to create a guide or its name. See \code{\link[ggplot2:guides]{guides()}} for more information.} + \item{\code{call}}{The \code{call} used to construct the scale for reporting messages.} \item{\code{super}}{The super class to use for the constructed scale} }} } diff --git a/man/scale_x_percent.Rd b/man/scale_x_percent.Rd index 89ce794..59cae2a 100644 --- a/man/scale_x_percent.Rd +++ b/man/scale_x_percent.Rd @@ -146,9 +146,9 @@ scales, "top" or "bottom" for horizontal scales} want to do that). \code{NULL} means no labels.} \item{accuracy, scale, prefix, suffix, big.mark, decimal.mark, trim}{See -[scales::comma_format()] or [scales::percent_format()]} +\code{\link[scales:comma]{scales::comma_format()}} or \code{\link[scales:percent_format]{scales::percent_format()}}} -\item{...}{passed on to [scales::comma_format()] or [scales::percent_format()]} +\item{...}{passed on to \code{\link[scales:comma]{scales::comma_format()}} or \code{\link[scales:percent_format]{scales::percent_format()}}} } \description{ The \verb{_comma} ones set comma format for axis text and \code{expand=c(0,0)} (you need to set limits). diff --git a/man/sdg_colors.Rd b/man/sdg_colors.Rd index b69c724..09a4cca 100644 --- a/man/sdg_colors.Rd +++ b/man/sdg_colors.Rd @@ -6,10 +6,10 @@ \format{ A data frame with 17 rows and 4 variables: \describe{ - \item{\code{goal}}{integer number for the SDG, 1-17} - \item{\code{color}}{character RGB color} - \item{\code{short_desc}}{character Short description of SDG} - \item{\code{long_desc}}{character Long description of SDG} +\item{\code{goal}}{integer number for the SDG, 1-17} +\item{\code{color}}{character RGB color} +\item{\code{short_desc}}{character Short description of SDG} +\item{\code{long_desc}}{character Long description of SDG} } } \usage{ diff --git a/man/theme_kth.Rd b/man/theme_kth.Rd index 91a3ea1..88bb4bd 100644 --- a/man/theme_kth.Rd +++ b/man/theme_kth.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/theme-kth.R \name{theme_kth} \alias{theme_kth} -\title{A [ggplot2] theme with default for the KTH graphical profile.} +\title{A \link[ggplot2:ggplot2-package]{ggplot2::ggplot2} theme with default for the KTH graphical profile.} \usage{ theme_kth( base_family = "Open Sans", @@ -53,22 +53,22 @@ theme_kth( \item{axis_title_family, axis_title_face, axis_title_size}{axis title font family, face and size} -\item{axis_title_just}{axis title font justification, one of `[blmcrt]`} +\item{axis_title_just}{axis title font justification, one of \verb{[blmcrt]}} -\item{plot_margin}{plot margin (specify with [ggplot2::margin()])} +\item{plot_margin}{plot margin (specify with \code{\link[ggplot2:element]{ggplot2::margin()}})} -\item{grid_col, axis_col}{grid & axis colors; both default to `#cccccc`} +\item{grid_col, axis_col}{grid & axis colors; both default to \verb{#cccccc}} -\item{grid}{panel grid (`TRUE`, `FALSE`, or a combination of `X`, `x`, `Y`, `y`)} +\item{grid}{panel grid (\code{TRUE}, \code{FALSE}, or a combination of \code{X}, \code{x}, \code{Y}, \code{y})} -\item{axis}{add x or y axes? `TRUE`, `FALSE`, "`xy`"} +\item{axis}{add x or y axes? \code{TRUE}, \code{FALSE}, "\code{xy}"} -\item{ticks}{ticks if `TRUE` add ticks} +\item{ticks}{ticks if \code{TRUE} add ticks} \item{fontscale_factor}{scaling factor for font sizes, by default 1} } \description{ -A [ggplot2] theme with default for the KTH graphical profile. +A \link[ggplot2:ggplot2-package]{ggplot2::ggplot2} theme with default for the KTH graphical profile. } \examples{ \dontrun{ diff --git a/man/theme_kth_neo.Rd b/man/theme_kth_neo.Rd index 5027e62..705f2ba 100644 --- a/man/theme_kth_neo.Rd +++ b/man/theme_kth_neo.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/theme-kth.R \name{theme_kth_neo} \alias{theme_kth_neo} -\title{A [ggplot2] theme with default for the KTH graphical profile using the Figtree font .} +\title{A \link[ggplot2:ggplot2-package]{ggplot2::ggplot2} theme with default for the KTH graphical profile using the Figtree font .} \usage{ theme_kth_neo( base_family = "Figtree Light", @@ -37,15 +37,15 @@ theme_kth_neo( \item{\code{strip_text_family,strip_text_face,strip_text_size}}{facet label font family, face and size} \item{\code{caption_family,caption_face,caption_size,caption_margin}}{plot caption family, face, size and margin} \item{\code{axis_title_family,axis_title_face,axis_title_size}}{axis title font family, face and size} - \item{\code{axis_title_just}}{axis title font justification, one of `[blmcrt]`} - \item{\code{plot_margin}}{plot margin (specify with [ggplot2::margin()])} - \item{\code{grid_col,axis_col}}{grid & axis colors; both default to `#cccccc`} - \item{\code{grid}}{panel grid (`TRUE`, `FALSE`, or a combination of `X`, `x`, `Y`, `y`)} + \item{\code{axis_title_just}}{axis title font justification, one of \verb{[blmcrt]}} + \item{\code{plot_margin}}{plot margin (specify with \code{\link[ggplot2:element]{ggplot2::margin()}})} + \item{\code{grid_col,axis_col}}{grid & axis colors; both default to \verb{#cccccc}} + \item{\code{grid}}{panel grid (\code{TRUE}, \code{FALSE}, or a combination of \code{X}, \code{x}, \code{Y}, \code{y})} \item{\code{axis_text_size}}{font size of axis text} - \item{\code{axis}}{add x or y axes? `TRUE`, `FALSE`, "`xy`"} - \item{\code{ticks}}{ticks if `TRUE` add ticks} + \item{\code{axis}}{add x or y axes? \code{TRUE}, \code{FALSE}, "\code{xy}"} + \item{\code{ticks}}{ticks if \code{TRUE} add ticks} }} } \description{ -A [ggplot2] theme with default for the KTH graphical profile using the Figtree font . +A \link[ggplot2:ggplot2-package]{ggplot2::ggplot2} theme with default for the KTH graphical profile using the Figtree font . } diff --git a/man/theme_kth_osc.Rd b/man/theme_kth_osc.Rd index 72a2a4e..0288916 100644 --- a/man/theme_kth_osc.Rd +++ b/man/theme_kth_osc.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/theme-kth.R \name{theme_kth_osc} \alias{theme_kth_osc} -\title{A [ggplot2] theme with default for the KTH graphical profile using the Narrow or Condensed +\title{A \link[ggplot2:ggplot2-package]{ggplot2::ggplot2} theme with default for the KTH graphical profile using the Narrow or Condensed version of Open Sans.} \usage{ theme_kth_osc( @@ -38,16 +38,16 @@ theme_kth_osc( \item{\code{strip_text_family,strip_text_face,strip_text_size}}{facet label font family, face and size} \item{\code{caption_family,caption_face,caption_size,caption_margin}}{plot caption family, face, size and margin} \item{\code{axis_title_family,axis_title_face,axis_title_size}}{axis title font family, face and size} - \item{\code{axis_title_just}}{axis title font justification, one of `[blmcrt]`} - \item{\code{plot_margin}}{plot margin (specify with [ggplot2::margin()])} - \item{\code{grid_col,axis_col}}{grid & axis colors; both default to `#cccccc`} - \item{\code{grid}}{panel grid (`TRUE`, `FALSE`, or a combination of `X`, `x`, `Y`, `y`)} + \item{\code{axis_title_just}}{axis title font justification, one of \verb{[blmcrt]}} + \item{\code{plot_margin}}{plot margin (specify with \code{\link[ggplot2:element]{ggplot2::margin()}})} + \item{\code{grid_col,axis_col}}{grid & axis colors; both default to \verb{#cccccc}} + \item{\code{grid}}{panel grid (\code{TRUE}, \code{FALSE}, or a combination of \code{X}, \code{x}, \code{Y}, \code{y})} \item{\code{axis_text_size}}{font size of axis text} - \item{\code{axis}}{add x or y axes? `TRUE`, `FALSE`, "`xy`"} - \item{\code{ticks}}{ticks if `TRUE` add ticks} + \item{\code{axis}}{add x or y axes? \code{TRUE}, \code{FALSE}, "\code{xy}"} + \item{\code{ticks}}{ticks if \code{TRUE} add ticks} }} } \description{ -A [ggplot2] theme with default for the KTH graphical profile using the Narrow or Condensed +A \link[ggplot2:ggplot2-package]{ggplot2::ggplot2} theme with default for the KTH graphical profile using the Narrow or Condensed version of Open Sans. } diff --git a/man/update_geom_font_defaults.Rd b/man/update_geom_font_defaults.Rd index 9414244..cd58473 100644 --- a/man/update_geom_font_defaults.Rd +++ b/man/update_geom_font_defaults.Rd @@ -15,5 +15,5 @@ update_geom_font_defaults( \item{family, face, size, color}{font family name, face, size and color} } \description{ -Updates [ggplot2::geom_label] and [ggplot2::geom_text] font defaults +Updates \link[ggplot2:geom_text]{ggplot2::geom_label} and \link[ggplot2:geom_text]{ggplot2::geom_text} font defaults }