Преглед изворни кода

plot theme examples are interactive only

tags/v0.3.0
Garrick Aden-Buie пре 6 година
родитељ
комит
d87c8580b6
4 измењених фајлова са 12 додато и 6 уклоњено
  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 Прегледај датотеку

#' @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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

\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())



Loading…
Откажи
Сачувај