theme_cn: cn font for ggplot2

Description Usage Examples

View source: R/theme_cn.R

Description

cn font for ggplot2

Usage

1
theme_cn(font = "STKaiti")

Examples

1
2
3
4
5
library(ggformula)
gf_point(mpg ~ hp, color = ~ cyl, size = ~wt, data = mtcars) -> p
p
p + xlab("X轴") + ylab("Y轴") + ggtitle("标题") # + theme_cn()
p + xlab("X轴") + ylab("Y轴") + ggtitle("标题") + theme_cn()

zengfengbo/cnfont documentation built on May 5, 2018, 5:10 a.m.