theme_cn: cn font for ggplot2

Description Usage Examples

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 15, 2019, 1:42 p.m.