-
Notifications
You must be signed in to change notification settings - Fork 0
biocsi/cnfont
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# cnfont set chinese font right for ggplot2 # install ```{r} devtools::install("zengfengbo/cnfont") ``` # usage ```{r} library(cnfont) # for base plot plot(1:10, xlab = "1到10", ylab = "1到10") # for ggplot2 library(ggplot2) ggplot(data.frame(x=1:10, y=1:10*2)) + geom_point(aes(x, y)) + xlab("X轴") + ylab("Y轴") + theme_cn() ```
About
R画图添加中文支持
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published