Procházet zdrojové kódy

plot theme examples are interactive only

tags/v0.3.0
Garrick Aden-Buie před 6 roky
rodič
revize
d87c8580b6
4 změnil soubory, kde provedl 12 přidání a 6 odebrání
  1. +6
    -3
      R/ggplot2.R
  2. +2
    -1
      man/theme_xaringan.Rd
  3. +2
    -1
      man/theme_xaringan_base.Rd
  4. +2
    -1
      man/theme_xaringan_inverse.Rd

+ 6
- 3
R/ggplot2.R Zobrazit soubor

#' @inheritDotParams theme_xaringan_base #' @inheritDotParams theme_xaringan_base
#' #'
#' @examples #' @examples
#' if (requireNamespace("ggplot2", quietly = TRUE)) {
#' has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE)
#' if (interactive() && has_ggplot2) {
#' # Set xaringanthemer theme but save to tempfile #' # Set xaringanthemer theme but save to tempfile
#' style_duo_accent(outfile = tempfile()) #' style_duo_accent(outfile = tempfile())
#' #'
#' @inheritDotParams theme_xaringan_base #' @inheritDotParams theme_xaringan_base
#' #'
#' @examples #' @examples
#' if (requireNamespace("ggplot2", quietly = TRUE)) {
#' has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE)
#' if (interactive() && has_ggplot2) {
#' # Set xaringanthemer theme but save to tempfile #' # Set xaringanthemer theme but save to tempfile
#' style_duo_accent(outfile = tempfile()) #' style_duo_accent(outfile = tempfile())
#' #'
#' @param ... Ignored #' @param ... Ignored
#' #'
#' @examples #' @examples
#' if (requireNamespace("ggplot2", quietly = TRUE)) {
#' has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE)
#' if (interactive() && has_ggplot2) {
#' library(ggplot2) #' library(ggplot2)
#' ggplot(iris) + #' ggplot(iris) +
#' aes(Petal.Length, Petal.Width) + #' aes(Petal.Length, Petal.Width) +

+ 2
- 1
man/theme_xaringan.Rd Zobrazit soubor

styles. styles.
} }
\examples{ \examples{
if (requireNamespace("ggplot2", quietly = TRUE)) {
has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE)
if (interactive() && has_ggplot2) {
# Set xaringanthemer theme but save to tempfile # Set xaringanthemer theme but save to tempfile
style_duo_accent(outfile = tempfile()) style_duo_accent(outfile = tempfile())



+ 2
- 1
man/theme_xaringan_base.Rd Zobrazit soubor

xaringanthemer for a plot theme that matches the slide style. xaringanthemer for a plot theme that matches the slide style.
} }
\examples{ \examples{
if (requireNamespace("ggplot2", quietly = TRUE)) {
has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE)
if (interactive() && has_ggplot2) {
library(ggplot2) library(ggplot2)
ggplot(iris) + ggplot(iris) +
aes(Petal.Length, Petal.Width) + aes(Petal.Length, Petal.Width) +

+ 2
- 1
man/theme_xaringan_inverse.Rd Zobrazit soubor

\pkg{xaringan} slide colors and styles as styled by \link{xaringanthemer}. \pkg{xaringan} slide colors and styles as styled by \link{xaringanthemer}.
} }
\examples{ \examples{
if (requireNamespace("ggplot2", quietly = TRUE)) {
has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE)
if (interactive() && has_ggplot2) {
# Set xaringanthemer theme but save to tempfile # Set xaringanthemer theme but save to tempfile
style_duo_accent(outfile = tempfile()) style_duo_accent(outfile = tempfile())



Načítá se…
Zrušit
Uložit