theme_yk_academic: ggplot color theme for academic files

Description Usage Arguments Details Value See Also Examples

Description

Themes that can be used in academic scenes.

Usage

1
2
3
4
5
6
7
8
9
theme_yk_academic_light(base_size = 10, base_family = "")

theme_yk_academic_dark(base_size = 10, base_family = "")

theme_yk_academic_dotted_gray(base_size = 10, base_family = "")

theme_yk_academic_brief(base_size = 10, base_family = "")

theme_yk_academic_common(base_size = 10, base_family = "")

Arguments

base_size

base font size

base_family

base font family

Details

theme_yk_academic_common

The signature yik-academic theme.

theme_yk_academic_brief

A theme in designed to show figures in a brief way.

theme_yk_academic_light

A theme like theme_yk_academic_common.

theme_yk_academic_dark

A theme with dark apperence, in the opposit of theme_yk_academic_light.

theme_yk_academic_dotted_gray

A theme with only dotted horizontal grid lines and light background.

Value

An object of class theme().

See Also

Other themes: theme_rp_light, theme_yk_business

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(medical_cpi)
head(medical_cpi)

medical_cpi$time <- as.Date(paste0(medical_cpi$time, '01'), format = '%Y%m%d')

windowsFonts(yahei = windowsFont("<e5><be><ae><e8><bd><af><e9><9b><85><e9><bb><91>"))
p <- ggplot(medical_cpi) +
  geom_line(aes(x = time, y = cpi, col = medi_type), size = 1)

# academic light
p + theme_yk_academic_light(base_family = 'yahei') +
  scale_color_academic_light()

# academic dark
p + theme_yk_academic_dark(base_family = 'yahei') +
  scale_color_academic_dark()

purplezippo/ggpkt documentation built on May 21, 2019, 10:34 a.m.