Przeglądaj źródła

use logical `NA` that can be cast to character

pull/82/head
Teun van den Brand 11 miesięcy temu
rodzic
commit
8264707848
2 zmienionych plików z 7 dodań i 2 usunięć
  1. +3
    -1
      R/ggplot2.R
  2. +4
    -1
      man/scale_xaringan.Rd

+ 3
- 1
R/ggplot2.R Wyświetl plik

@@ -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 Wyświetl plik

@@ -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]}}

Ładowanie…
Anuluj
Zapisz