Skip to contents

Overview

The quarto package includes functions to help you theme plotting and table packages, for example to provide light and dark renderings.

The functions return theme objects or functions, which are applied differently depending on the package.

This vignette demonstrates adding background and foreground colors to outputs from each package.

These are very simple helper functions to get you started. If you need to customize them further, these functions can be copied from quarto-r.

flextable

Demonstrates a flextable with green foreground and yellow background.

Air quality

Time

Ozone

Solar.R

Wind

Temp

Month

Day

28

14.9

66

5

6

23

299

8.6

65

5

7

41

190

7.4

67

5

1

18

313

11.5

62

5

4

19

99

13.8

59

5

8

8

19

20.1

61

5

9

14.3

56

5

5

36

118

8.0

72

5

2

194

8.6

69

5

10

12

149

12.6

74

5

3

Daily air quality measurements in New York, May to September 1973.

ggiraph

Demonstrates a ggiraph interactive plot with deep blue background and mauve foreground.

ggplot2

Demonstrates a ggplot2 plot with near-black background and green-grey foreground.

gt

Demonstrates a gt table with light green background and black foreground.

name size
Asia 16988
Africa 11506
North America 9390
South America 6795
Antarctica 5500
Europe 3745
Australia 2968
Greenland 840
New Guinea 306
Borneo 280

plotly

Demonstrates a heatmaply interactive heatmap with a dark green background background and light blue foreground.

thematic

Demonstrates a patchwork plot with dark red background and light grey foreground.