Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Python
- SQL
- Express
- xPlatform
- tomcat
- MSSQL
- Android
- mapreduce
- NPM
- vaadin
- Eclipse
- plugin
- IntelliJ
- Kotlin
- Sqoop
- JavaScript
- Java
- table
- hadoop
- GIT
- R
- SSL
- SPC
- 공정능력
- Spring
- window
- react
- es6
- mybatis
- 보조정렬
Archives
- Today
- Total
DBILITY
R pie chart 본문
반응형
graphics패키지 pie
> rm(list=ls())
> # DBILITY그룹 팀별 매출액
> library(graphics)
> x<-c(100,50,120,150)# 매출액
> dept<-c('소프트웨어개발팀','기술연구소','기술지원팀','기술영업팀')
> colors<-c('blue','red','yellow','green')
> pct<-round((x/sum(x))*100)
> dept<-paste(dept,'(',pct,'%)')
> pie(x,labels = dept, main = 'DBILITY그룹 팀별 매출액', init.angle=90, col=rainbow(length(x)))
plotrix 패키지 pie3D
> library(plotrix)
> pie3D(x,labels = dept, explode = 0.05, labelcex = 1.2, col = rainbow(length(x)) ,main = 'DBILITY그룹 팀별 매출액')
반응형
'statistics > R' 카테고리의 다른 글
| R plot 관련 정리 (0) | 2018.12.01 |
|---|---|
| R bar chart (0) | 2018.12.01 |
| R plyr package (0) | 2018.11.30 |
| R SQL package (0) | 2018.11.30 |
| R 필드 접근 간편 처리 (0) | 2018.11.29 |
Comments