@@ -39,10 +39,10 @@ knitr::opts_chunk$set(
39
39
>
40
40
> --- Claude Monet
41
41
42
- ` ggsci ` offers a collection of high-quality color palettes inspired by
42
+ ggsci offers a collection of high-quality color palettes inspired by
43
43
colors used in scientific journals, data visualization libraries,
44
- science fiction movies, and TV shows. The color palettes in ` ggsci `
45
- are available as ` ggplot2 ` scales. For all the color palettes,
44
+ science fiction movies, and TV shows. The color palettes in ggsci
45
+ are available as ggplot2 scales. For all the color palettes,
46
46
the corresponding scales are named as:
47
47
48
48
- ` scale_color_palname() `
@@ -135,7 +135,7 @@ summarized in the table below.
135
135
## Discrete color palettes
136
136
137
137
We will use scatterplots with smooth curves, and bar plots to demonstrate
138
- the discrete color palettes in ` ggsci ` .
138
+ the discrete color palettes in ggsci.
139
139
140
140
``` {r}
141
141
library("ggsci")
@@ -393,7 +393,7 @@ grid.arrange(p1_frontiers, p2_frontiers, ncol = 2)
393
393
## Continuous color palettes
394
394
395
395
We will use a correlation matrix visualization (a special type of heatmap)
396
- to demonstrate the continuous color palettes in ` ggsci ` .
396
+ to demonstrate the continuous color palettes in ggsci.
397
397
398
398
``` {r}
399
399
library("reshape2")
@@ -481,7 +481,7 @@ of their saturation levels.
481
481
482
482
## Non-ggplot2 graphics
483
483
484
- To apply the color palettes in ` ggsci ` to other graphics systems
484
+ To apply the color palettes in ggsci to other graphics systems
485
485
(such as base graphics and lattice graphics), simply use the
486
486
palette generator functions in the table above. For example:
487
487
0 commit comments