Просмотр исходного кода

Add return values to ggplot2 theme docs

tags/v0.3.0
Garrick Aden-Buie 7 лет назад
Родитель
Сommit
b0bce6e4f2
5 измененных файлов: 19 добавлений и 0 удалений
  1. +5
    -0
      R/ggplot2.R
  2. +3
    -0
      man/theme_xaringan.Rd
  3. +3
    -0
      man/theme_xaringan_base.Rd
  4. +3
    -0
      man/theme_xaringan_inverse.Rd
  5. +5
    -0
      man/theme_xaringan_set_defaults.Rd

+ 5
- 0
R/ggplot2.R Просмотреть файл

#' theme_xaringan() #' theme_xaringan()
#' } #' }
#' #'
#' @return A ggplot2 theme
#' @family xaringanthemer ggplot2 themes #' @family xaringanthemer ggplot2 themes
#' @export #' @export
theme_xaringan <- function( theme_xaringan <- function(
#' theme_xaringan() #' theme_xaringan()
#' } #' }
#' #'
#' @return A ggplot2 theme
#' @family xaringanthemer ggplot2 themes #' @family xaringanthemer ggplot2 themes
#' @export #' @export
theme_xaringan_inverse <- function( theme_xaringan_inverse <- function(
#' caption = "{xaringanthemer}") #' caption = "{xaringanthemer}")
#' } #' }
#' #'
#' @return A ggplot2 theme
#' @family xaringanthemer ggplot2 themes #' @family xaringanthemer ggplot2 themes
#' @export #' @export
theme_xaringan_base <- function( theme_xaringan_base <- function(
#' #'
#' @family xaringanthemer ggplot2 themes #' @family xaringanthemer ggplot2 themes
#' @inheritParams theme_xaringan #' @inheritParams theme_xaringan
#' @return Invisibly returns a list of the current ggplot2 geom defaults
#' @export #' @export
theme_xaringan_set_defaults <- function( theme_xaringan_set_defaults <- function(
text_color = NULL, text_color = NULL,


#' @describeIn theme_xaringan_set_defaults Restore previous or standard [ggplot2] _geom_ defaults. #' @describeIn theme_xaringan_set_defaults Restore previous or standard [ggplot2] _geom_ defaults.
#' @inheritParams theme_xaringan #' @inheritParams theme_xaringan
#' @return Invisibly returns a list of the current ggplot2 geom defaults
#' @export #' @export
xaringan_theme_restore_defaults <- function() { xaringan_theme_restore_defaults <- function() {
requires_package("ggplot2") requires_package("ggplot2")

+ 3
- 0
man/theme_xaringan.Rd Просмотреть файл

or defaults to 14.} or defaults to 14.}
}} }}
} }
\value{
A ggplot2 theme
}
\description{ \description{
Creates \link{ggplot2} themes to match the xaringanthemer theme used in the Creates \link{ggplot2} themes to match the xaringanthemer theme used in the
\link{xaringan} slides that seamlessly matches the "normal" slide colors and \link{xaringan} slides that seamlessly matches the "normal" slide colors and

+ 3
- 0
man/theme_xaringan_base.Rd Просмотреть файл

\item{title_font_size}{Base text font size, inherits from \code{title_font_size}, \item{title_font_size}{Base text font size, inherits from \code{title_font_size},
or defaults to 14.} or defaults to 14.}
} }
\value{
A ggplot2 theme
}
\description{ \description{
Provides a base plot theme for \link{ggplot2} to match the \link{xaringan} slide theme Provides a base plot theme for \link{ggplot2} to match the \link{xaringan} slide theme
created by \link{xaringanthemer}. The theme is designed to create a general plot created by \link{xaringanthemer}. The theme is designed to create a general plot

+ 3
- 0
man/theme_xaringan_inverse.Rd Просмотреть файл

or defaults to 14.} or defaults to 14.}
}} }}
} }
\value{
A ggplot2 theme
}
\description{ \description{
A \link{ggplot2} xaringanthemer plot theme to seamlessly match the "inverse" A \link{ggplot2} xaringanthemer plot theme to seamlessly match the "inverse"
\link{xaringan} slide colors and styles as styled by \link{xaringanthemer}. \link{xaringan} slide colors and styles as styled by \link{xaringanthemer}.

+ 5
- 0
man/theme_xaringan_set_defaults.Rd Просмотреть файл

\item{accent_secondary_color}{Color for secondary accents, inherits from \item{accent_secondary_color}{Color for secondary accents, inherits from
\code{text_bold_color}} \code{text_bold_color}}
} }
\value{
Invisibly returns a list of the current ggplot2 geom defaults

Invisibly returns a list of the current ggplot2 geom defaults
}
\description{ \description{
Set \link{ggplot2} \emph{geom} defaults to match \code{\link[=theme_xaringan]{theme_xaringan()}} with Set \link{ggplot2} \emph{geom} defaults to match \code{\link[=theme_xaringan]{theme_xaringan()}} with
\code{theme_xaringan_set_defaults()} and restore the standard or previously-set \code{theme_xaringan_set_defaults()} and restore the standard or previously-set

Загрузка…
Отмена
Сохранить