Skip to content

biocsi/cnfont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy