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

Change formatting of colorspace function links in roxygen

tags/v0.3.0
Garrick Aden-Buie 6 лет назад
Родитель
Сommit
f7284abf41
2 измененных файлов: 8 добавлений и 8 удалений
  1. +4
    -4
      R/ggplot2.R
  2. +4
    -4
      man/scale_xaringan.Rd

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

@@ -515,10 +515,10 @@ safely_set_geom <- function(geom, new) {
#' created using the primary accent color of the xaringanthemer styles.
#'
#' @param ... Arguments passed on to either the \pkg{colorspace} scale
#' functions — one of [colorspace::scale_color_discrete_sequential],
#' [colorspace::scale_color_continuous_sequential],
#' [colorspace::scale_fill_discrete_sequential], or
#' [colorspace::scale_fill_continuous_sequential] — or to
#' functions — one of [colorspace::scale_color_discrete_sequential()],
#' [colorspace::scale_color_continuous_sequential()],
#' [colorspace::scale_fill_discrete_sequential()], or
#' [colorspace::scale_fill_continuous_sequential()] — or to
#' [ggplot2::continuous_scale] or [ggplot2::discrete_scale].
#' @param color A color value, in hex, to override the default color. Otherwise,
#' the primary color of the resulting scale is chosen from the xaringanthemer

+ 4
- 4
man/scale_xaringan.Rd Просмотреть файл

@@ -74,10 +74,10 @@ scale_xaringan_colour_continuous(
One of "color", "colour", or "fill".}

\item{...}{Arguments passed on to either the \pkg{colorspace} scale
functions — one of \link[colorspace:scale_color_discrete_sequential]{colorspace::scale_color_discrete_sequential},
\link[colorspace:scale_color_continuous_sequential]{colorspace::scale_color_continuous_sequential},
\link[colorspace:scale_fill_discrete_sequential]{colorspace::scale_fill_discrete_sequential}, or
\link[colorspace:scale_fill_continuous_sequential]{colorspace::scale_fill_continuous_sequential} — or to
functions — one of \code{\link[colorspace:scale_color_discrete_sequential]{colorspace::scale_color_discrete_sequential()}},
\code{\link[colorspace:scale_color_continuous_sequential]{colorspace::scale_color_continuous_sequential()}},
\code{\link[colorspace:scale_fill_discrete_sequential]{colorspace::scale_fill_discrete_sequential()}}, or
\code{\link[colorspace:scale_fill_continuous_sequential]{colorspace::scale_fill_continuous_sequential()}} — or to
\link[ggplot2:continuous_scale]{ggplot2::continuous_scale} or \link[ggplot2:discrete_scale]{ggplot2::discrete_scale}.}

\item{color}{A color value, in hex, to override the default color. Otherwise,

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