Skip to content

Commit a7cfd07

Browse files
vignette
1 parent bdf1f96 commit a7cfd07

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

vignettes/theme-helpers.qmd

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Demonstrates a flextable with green foreground and yellow background.
2929
library(flextable)
3030
library(quarto)
3131
32-
yellow_green_theme <- theme_colors_flextable('#e3e5a9', '#165b26')
32+
yellow_green_theme <- theme_colors_flextable("#e3e5a9", "#165b26")
3333
3434
ft <- flextable(airquality[ sample.int(10),])
3535
ft <- add_header_row(ft,
@@ -56,7 +56,7 @@ library(quarto)
5656
library(ggplot2)
5757
library(ggiraph)
5858
59-
blue_mauve_theme = theme_colors_ggplot('#111038', '#E0B0FF')
59+
blue_mauve_theme = theme_colors_ggplot("#111038", "#E0B0FF")
6060
6161
cars <- ggplot(mtcars, aes(mpg, wt)) +
6262
geom_point_interactive(aes(colour = factor(cyl), tooltip = rownames(mtcars))) +
@@ -76,7 +76,7 @@ Demonstrates a ggplot2 plot with near-black background and green-grey foreground
7676
library(quarto)
7777
library(ggplot2)
7878
79-
black_greyn <- theme_colors_ggplot('#050411', '#8faf8e')
79+
black_greyn <- theme_colors_ggplot("#050411", "#8faf8e")
8080
8181
cars <- ggplot(mtcars, aes(mpg, wt)) +
8282
geom_point(aes(colour = factor(cyl))) +
@@ -97,7 +97,7 @@ library(gt)
9797
library(quarto)
9898
library(dplyr)
9999
100-
green_black_theme <- theme_colors_gt('#a5f7d6', '#020202')
100+
green_black_theme <- theme_colors_gt("#a5f7d6", "#020202")
101101
102102
islands_tbl <-
103103
tibble(
@@ -106,7 +106,7 @@ islands_tbl <-
106106
) |>
107107
slice_max(size, n = 10)
108108
109-
islands_tbl |> green_black_theme()
109+
gt(islands_tbl) |> green_black_theme()
110110
```
111111

112112

@@ -122,7 +122,7 @@ Demonstrates a heatmaply interactive heatmap with an off-white background and bl
122122
library(heatmaply)
123123
library(quarto)
124124
125-
offwhite_blue_theme <- theme_colors_plotly('#f4f4f7', '#2063b5')
125+
offwhite_blue_theme <- theme_colors_plotly("#f4f4f7", "#2063b5")
126126
127127
fig <- heatmaply(mtcars, k_row = 3, k_col = 2)
128128
@@ -140,12 +140,12 @@ Demonstrates a heatmaply interactive heatmap with a dark green background backgr
140140
library(quarto)
141141
library(plotly)
142142
143-
green_blue_theme <- theme_colors_plotly('#293a0a', '#a5eff7')
143+
green_blue_theme <- theme_colors_plotly("#293a0a", "#a5eff7")
144144
145-
fig <- plot_ly(iris, x = ~Species, y = ~Sepal.Width, type = 'violin',
145+
fig <- plot_ly(iris, x = ~Species, y = ~Sepal.Width, type = "violin",
146146
box = list(visible = TRUE),
147147
meanline = list(visible = TRUE),
148-
points = 'all')
148+
points = "all")
149149
150150
fig |> green_blue_theme()
151151
```
@@ -162,7 +162,7 @@ library(ggplot2)
162162
library(quarto)
163163
library(patchwork)
164164
165-
darkred_grey_theme <- theme_colors_thematic('#560115', '#ddeeee');
165+
darkred_grey_theme <- theme_colors_thematic("#560115", "#ddeeee");
166166
167167
#generate three scatterplots
168168
plot1 <- ggplot(mtcars, aes(mpg, wt)) +

0 commit comments

Comments
 (0)