瀏覽代碼

spellcheck

tags/v0.3.0
Garrick Aden-Buie 6 年之前
父節點
當前提交
9e27e3522a
共有 26 個文件被更改,包括 29 次插入29 次删除
  1. +1
    -1
      R/ggplot2.R
  2. +1
    -1
      R/style_duo.R
  3. +1
    -1
      R/style_duo_accent.R
  4. +1
    -1
      R/style_duo_accent_inverse.R
  5. +1
    -1
      R/style_font_default.R
  6. +1
    -1
      R/style_mono_accent.R
  7. +1
    -1
      R/style_mono_accent_inverse.R
  8. +1
    -1
      R/style_mono_dark.R
  9. +1
    -1
      R/style_mono_light.R
  10. +1
    -1
      R/style_solarized_dark.R
  11. +1
    -1
      R/style_solarized_light.R
  12. +1
    -1
      R/style_xaringan.R
  13. 二進制
      R/sysdata.rda
  14. +1
    -1
      data-raw/theme_template_variables.R
  15. +1
    -1
      man/scale_xaringan.Rd
  16. +1
    -1
      man/style_duo.Rd
  17. +1
    -1
      man/style_duo_accent.Rd
  18. +1
    -1
      man/style_duo_accent_inverse.Rd
  19. +1
    -1
      man/style_mono_accent.Rd
  20. +1
    -1
      man/style_mono_accent_inverse.Rd
  21. +1
    -1
      man/style_mono_dark.Rd
  22. +1
    -1
      man/style_mono_light.Rd
  23. +1
    -1
      man/style_solarized_dark.Rd
  24. +1
    -1
      man/style_solarized_light.Rd
  25. +2
    -2
      man/style_xaringan.Rd
  26. +4
    -4
      vignettes/ggplot2-themes.Rmd

+ 1
- 1
R/ggplot2.R 查看文件

@@ -507,7 +507,7 @@ safely_set_geom <- function(geom, new) {

# Color Scales ------------------------------------------------------------

#' Xaringan Themer ggplot2 Scales
#' Themed ggplot2 Scales
#'
#' @description
#'

+ 1
- 1
R/style_duo.R 查看文件

@@ -43,7 +43,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_duo_accent.R 查看文件

@@ -52,7 +52,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_duo_accent_inverse.R 查看文件

@@ -52,7 +52,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_font_default.R 查看文件

@@ -1,4 +1,4 @@
#' @describeIn style_xaringan Default values for font family, wieght, URLs and
#' @describeIn style_xaringan Default values for font family, weight, URLs and
#' font fallbacks.
#' @param font_arg A font argument from the \pkg{xaringanthemer} `style_`
#' function family.

+ 1
- 1
R/style_mono_accent.R 查看文件

@@ -46,7 +46,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_mono_accent_inverse.R 查看文件

@@ -47,7 +47,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_mono_dark.R 查看文件

@@ -48,7 +48,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_mono_light.R 查看文件

@@ -48,7 +48,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_solarized_dark.R 查看文件

@@ -34,7 +34,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_solarized_light.R 查看文件

@@ -34,7 +34,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

+ 1
- 1
R/style_xaringan.R 查看文件

@@ -34,7 +34,7 @@
#' `.remark-slide-content` class.
#' @param background_size Background image size, requires `background_image` to
#' be set. If `background_image` is set, `background_size` will default to
#' `cover` so the backround fills the screen. If both `background_image` and
#' `cover` so the background fills the screen. If both `background_image` and
#' `background_position` are set, will default to 100 percent. Defaults to
#' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
#' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)

二進制
R/sysdata.rda 查看文件


+ 1
- 1
data-raw/theme_template_variables.R 查看文件

@@ -9,7 +9,7 @@ template_variables <- tibble::tribble(
, "text_slide_number_color", "{inverse_background_color}", ".remark-slide-number", "Slide Number Color", NA_character_
, "padding", "16px 64px 16px 64px", ".remark-slide-content", "Slide Padding in `top right [bottom left]` format", NA_character_
, "background_image", "{NULL}", ".remark-slide-content", "Background image applied to each *and every* slide. Set `title_slide_background_image = \"none\"` to remove the background image from the title slide", NA_character_
, "background_size", "{NULL}", ".remark-slide-content", "Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent", NA_character_
, "background_size", "{NULL}", ".remark-slide-content", "Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the background fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent", NA_character_
, "background_position", "{NULL}", ".remark-slide-content", "Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`", NA_character_
, "code_highlight_color", "rgba(255,255,0,0.5)", ".remark-code-line-highlighted", "Code Line Highlight", "--code-highlight-color"
, "code_inline_color", "#000", ".remark-inline-code", "Inline Code Color", NA_character_

+ 1
- 1
man/scale_xaringan.Rd 查看文件

@@ -10,7 +10,7 @@
\alias{scale_xaringan_fill_continuous}
\alias{scale_xaringan_color_continuous}
\alias{scale_xaringan_colour_continuous}
\title{Xaringan Themer ggplot2 Scales}
\title{Themed ggplot2 Scales}
\usage{
scale_xaringan_discrete(
aes_type = c("color", "colour", "fill"),

+ 1
- 1
man/style_duo.Rd 查看文件

@@ -127,7 +127,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 1
- 1
man/style_duo_accent.Rd 查看文件

@@ -141,7 +141,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 1
- 1
man/style_duo_accent_inverse.Rd 查看文件

@@ -142,7 +142,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 1
- 1
man/style_mono_accent.Rd 查看文件

@@ -131,7 +131,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 1
- 1
man/style_mono_accent_inverse.Rd 查看文件

@@ -132,7 +132,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 1
- 1
man/style_mono_dark.Rd 查看文件

@@ -133,7 +133,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 1
- 1
man/style_mono_light.Rd 查看文件

@@ -133,7 +133,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 1
- 1
man/style_solarized_dark.Rd 查看文件

@@ -113,7 +113,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 1
- 1
man/style_solarized_light.Rd 查看文件

@@ -113,7 +113,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}

+ 2
- 2
man/style_xaringan.Rd 查看文件

@@ -119,7 +119,7 @@ from the title slide. Defaults to \code{NULL}. Modifies the

\item{background_size}{Background image size, requires \code{background_image} to
be set. If \code{background_image} is set, \code{background_size} will default to
\code{cover} so the backround fills the screen. If both \code{background_image} and
\code{cover} so the background fills the screen. If both \code{background_image} and
\code{background_position} are set, will default to 100 percent. Defaults to
\code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}
@@ -405,7 +405,7 @@ Creates a customized Xaringan theme CSS file.
}
\section{Functions}{
\itemize{
\item \code{xaringanthemer_font_default}: Default values for font family, wieght, URLs and
\item \code{xaringanthemer_font_default}: Default values for font family, weight, URLs and
font fallbacks.
}}


+ 4
- 4
vignettes/ggplot2-themes.Rmd 查看文件

@@ -145,7 +145,7 @@ instead of rebuilding your theme with every new slide deck.

In these cases, `theme_xaringan()` will look for a CSS file
written by **xaringanthemer** in your slides' directory
or in a subfolder under the same directory
or in a sub-folder under the same directory
that it can use to determine the colors and fonts used in your slides.

If you happen to have multiple slide themes
@@ -263,7 +263,7 @@ The scales come with a few more options:
- Invert the direction of the discrete scales with `direction = -1`.

- Control the range of the continuous color scale used with `begin` and `end`.
You can also invert the direction of the continous color scale by setting
You can also invert the direction of the continuous color scale by setting
`begin = 1` and `end = 0`.

## Fonts
@@ -320,7 +320,7 @@ so that it can be used in your plots.
I found a nice open source font called
[Glacial Indifference](https://fontlibrary.org/en/font/glacial-indifference)
by Alfredo Marco Pradil
avilable at [fontlibrary.org](https://fontlibrary.org).
available at [fontlibrary.org](https://fontlibrary.org).
In my theme style function,
I would use

@@ -333,7 +333,7 @@ style_mono_accent(

but sysfonts won't know where to find the TTF font files for this font.

To register the font with sysfont, we use `sysfonts::font_add()`,
To register the font with sysfonts, we use `sysfonts::font_add()`,
but first we need to download the font file —
the `sysfonts::font_add()` function requires the font file to be local.


Loading…
取消
儲存