b:head_first_statistics:visualization
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
b:head_first_statistics:visualization [2020/09/07 12:39] – [Bar chart] hkimscil | b:head_first_statistics:visualization [2022/09/14 08:49] – hkimscil | ||
---|---|---|---|
Line 39: | Line 39: | ||
{{good.bar.chart.2.png? | {{good.bar.chart.2.png? | ||
* 장르 별 만족도 | * 장르 별 만족도 | ||
+ | * (우리 회사) 부서별 성취도 | ||
+ | |||
+ | ====== Histogram ====== | ||
+ | ^ ser ^ freq ^ | ||
+ | | 1 | 100 | | ||
+ | | 2 | 88 | | ||
+ | | 3 | 159 | | ||
+ | | 4 | 201 | | ||
+ | | 5 | 250 | | ||
+ | | 6 | 250 | | ||
+ | | 7 | 254 | | ||
+ | | 8 | 288 | | ||
+ | | 9 | 356 | | ||
+ | | 10 | 380 | | ||
+ | | 11 | 430 | | ||
+ | | 12 | 450 | | ||
+ | | 13 | 433 | | ||
+ | | 14 | 543 | | ||
+ | | 15 | 540 | | ||
+ | | 16 | 570 | | ||
+ | | 17 | 450 | | ||
+ | | 18 | 433 | | ||
+ | | 19 | 543 | | ||
+ | | 20 | 690 | | ||
+ | | 21 | 640 | | ||
+ | | 22 | 720 | | ||
+ | | 23 | 777 | | ||
+ | | 24 | 720 | | ||
+ | | 25 | 880 | | ||
+ | | 26 | 900 | | ||
+ | |||
+ | Excel에서의 histogram | ||
+ | |||
+ | | Bin | Frequency | ||
+ | | 199 | 3 | | ||
+ | | 399 | 7 | | ||
+ | | 599 | 9 | | ||
+ | | 799 | 5 | | ||
+ | | 999 | 2 | | ||
+ | |||
+ | |||
+ | |||
+ | in R . . . . | ||
+ | < | ||
+ | dat <- c(100, 88, 159, 201, 250, 250, 254, 288, 356, 380, | ||
+ | 430, 450, 433, 543, 540, 570, 450, 433, 543, 690, | ||
+ | 640, 720, 777, 720, 880, 900) | ||
+ | dat | ||
+ | hist(dat) | ||
+ | hist(dat, breaks=5) | ||
+ | </ | ||
+ | |||
====== Scatter plot ====== | ====== Scatter plot ====== | ||
- | + | < | |
+ | hist(mtcars$hp) | ||
+ | </ | ||
+ | {{: | ||
- | < | + | < |
attach(mtcars) | attach(mtcars) | ||
plot(wt, mpg, main=" | plot(wt, mpg, main=" | ||
Line 112: | Line 168: | ||
see | see | ||
https:// | https:// | ||
- | | + | * Life expectancy data: {{: |
- | {{: | + | |
- | | + | |
< | < |
b/head_first_statistics/visualization.txt · Last modified: 2023/09/11 08:11 by hkimscil