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

use logical `NA` that can be cast to character

pull/82/head
Teun van den Brand 11 месяцев назад
Родитель
Сommit
8264707848
2 измененных файлов: 7 добавлений и 2 удалений
  1. +3
    -1
      R/ggplot2.R
  2. +4
    -1
      man/scale_xaringan.Rd

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

@@ -662,7 +662,8 @@ scale_xaringan_continuous <- function(
color = NULL,
begin = 0,
end = 1,
inverse = FALSE
inverse = FALSE,
na.value = NA
) {
requires_package("ggplot2", "scale_xaringan_continuous")
requires_package("scales", "scale_xaringan_continuous")
@@ -687,6 +688,7 @@ scale_xaringan_continuous <- function(
palette = scales::gradient_n_pal(colors, values = NULL),
rescaler = rescaler,
oob = scales::censor,
na.value = na.value,
...
)
}

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

@@ -42,7 +42,8 @@ scale_xaringan_continuous(
color = NULL,
begin = 0,
end = 1,
inverse = FALSE
inverse = FALSE,
na.value = NA
)

scale_xaringan_fill_continuous(
@@ -94,6 +95,8 @@ value of \code{inverse_header_color}}
\item{begin}{Number in the range of \code{[0, 1]} indicating to which point in the color scale the smallest data value should be mapped.}

\item{end}{Number in the range of \code{[0, 1]} indicating to which point in the color scale the largest data value should be mapped.}

\item{na.value}{Color to be used for missing data points.}
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#maturing}{\figure{lifecycle-maturing.svg}{options: alt='[Maturing]'}}}{\strong{[Maturing]}}

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