| @@ -507,7 +507,7 @@ safely_set_geom <- function(geom, new) { | |||
| # Color Scales ------------------------------------------------------------ | |||
| #' Xaringan Themer ggplot2 Scales | |||
| #' Themed ggplot2 Scales | |||
| #' | |||
| #' @description | |||
| #' | |||
| @@ -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) | |||
| @@ -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) | |||
| @@ -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,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. | |||
| @@ -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) | |||
| @@ -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) | |||
| @@ -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) | |||
| @@ -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) | |||
| @@ -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) | |||
| @@ -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) | |||
| @@ -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) | |||
| @@ -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_ | |||
| @@ -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"), | |||
| @@ -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} | |||
| @@ -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} | |||
| @@ -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} | |||
| @@ -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} | |||
| @@ -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} | |||
| @@ -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} | |||
| @@ -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} | |||
| @@ -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} | |||
| @@ -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} | |||
| @@ -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. | |||
| }} | |||
| @@ -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. | |||