Pārlūkot izejas kodu

Fix indents and invisible characters (GitHub Actions)

pull/81/head
gadenbuie pirms 1 gada
vecāks
revīzija
3f22b3822a
5 mainītis faili ar 7 papildinājumiem un 11 dzēšanām
  1. +0
    -1
      R/ggplot2.R
  2. +0
    -1
      tests/testthat/test-helpers.R
  3. +0
    -1
      tests/testthat/test-style_xaringan.R
  4. +0
    -1
      tests/testthat/test-themes.R
  5. +7
    -7
      vignettes/ggplot2-themes.Rmd

+ 0
- 1
R/ggplot2.R Parādīt failu

@@ -1,4 +1,3 @@

#' A Plot Theme for ggplot2 by xaringanthemer
#'
#' @description

+ 0
- 1
tests/testthat/test-helpers.R Parādīt failu

@@ -1,4 +1,3 @@

test_that("element_description", {
text_in <- c("multiple", NA, "", ".remark-slide-content", "h1", "pre, code")
text_out <- c(

+ 0
- 1
tests/testthat/test-style_xaringan.R Parādīt failu

@@ -1,4 +1,3 @@

test_that("style_xaringan() writes to specified outfile", {
tmpfile <- tempfile(fileext = ".css")
expect_equal(style_xaringan(outfile = tmpfile), tmpfile)

+ 0
- 1
tests/testthat/test-themes.R Parādīt failu

@@ -1,4 +1,3 @@

test_theme_file <- function(theme = "duo", theme_file = paste0(theme, ".css"), ...) {
local_edition(2)
on.exit(local_edition(3))

+ 7
- 7
vignettes/ggplot2-themes.Rmd Parādīt failu

@@ -12,7 +12,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
warning = FALSE,
comment = "#>",
fig.width = 6,
fig.width = 6,
fig.height = 4
)
```
@@ -100,8 +100,8 @@ changes the colors and fonts of your plot theme.
```{r ggplot2-demo-1, out.width = "48%", fig.show="hide"}
library(ggplot2)

g_base <- ggplot(mpg) +
aes(hwy, cty) +
g_base <- ggplot(mpg) +
aes(hwy, cty) +
geom_point() +
labs(x = "Highway MPG", y = "City MPG", title = "Fuel Efficiency")

@@ -285,10 +285,10 @@ In our demo theme, we used `style_mono_accent()` with
- `header_font_google = google_font("Oleo Script")`.

```{r text demo, fig.width = 10}
g_diamonds_with_text <-
g_diamonds +
g_diamonds_with_text <-
g_diamonds +
geom_text(aes(y = ..count.., label = format(..count.., big.mark = ",")),
vjust = -0.30, size = 8, stat = "count") +
vjust = -0.30, size = 8, stat = "count") +
labs(x = "Cut", y = "Count")

g_diamonds_with_text + theme_xaringan()
@@ -346,7 +346,7 @@ in the xaringanthemer package.
```{r eval=FALSE}
font_url <- file.path(
"https://fontlibrary.org/assets/fonts/glacial-indifference/",
"5f2cf277506e19ec77729122f27b1faf/0820b3c58fed35de298219f314635982",
"5f2cf277506e19ec77729122f27b1faf/0820b3c58fed35de298219f314635982",
"GlacialIndifferenceRegular.ttf"
)


Notiek ielāde…
Atcelt
Saglabāt