R16 [R] D3js 와 js를 활용한 시각화 시각화¶ 보고를 위한 그래프 그리기¶ D3.js와 그 외 JS 그래프¶ D3.js 는 html, javascirpt 로 만들 수 있는 그래프 R에서는 rCharts 를 이용 html, js를 몰라도 사용 가능 rChart : JS 라이브러리를 R 에서 직접 사용하게 해주는 패키지 D3.js 는 인터랙티브 그래프 In [1]: # rChart 설치 - Github install.packages('devtools') also installing the dependencies 'ini', 'gh', 'rematch2', 'rex', 'crosstalk', 'xopen', 'brew', 'u.. 2020. 7. 9. [R] R 필수 패키지 설치 및 기초 필수 패키지 설치¶ In [1]: install.packages('ggplot2') also installing the dependencies 'desc', 'pkgbuild', 'rprojroot', 'pkgload', 'praise', 'rlang', 'testthat', 'isoband' package 'desc' successfully unpacked and MD5 sums checked package 'pkgbuild' successfully unpacked and MD5 sums checked package 'rprojroot.. 2020. 7. 8. [R] 데이터 시각화 및 EDA 시각화¶ EDA 연습¶ 상관관계가 높은 변수쌍 찾기¶ Data set - mtcars - R 기본 내장¶ Motor Trend Car Road Test Motor Trend 잡지로 부터 추출된 자료 1973~1974년도 각기 종류가 다른 32대의 자동차 자료 mpg(Miles/gallon) : 연비 cyl(Number of cylinders) : 실린더 수 disp(Displacement) : 배기량 hp(Gross horsepower) : 마력 drat(Rear axle ratio) : 후방 차축 비율 wt(Weight) : 차체 무게 qsec (1/4 mile time) : 400m 까기 걸리는 시간 vs(V/S) am (Transmission 0 = auto, 1 = manual) gear (Num.. 2020. 7. 8. [R] 데이터 시각화 시각화¶ 여러 그래프로 데이터 나타내기¶ 분석¶ 탐색적 자료분석(EDA, Exploratory Data Analysis) 확증적 자료분석(CDA, Confirmatory Data Analysis) 탐색적 자료 분석¶ 빠르게 자료의 특징을 찾는 행위 확증적 자료 분석¶ 느리더라도 확실한 결론을 내리는 행위 자료의 현시성¶ 자료를 빠르게 그래프로 그리고 그래프를 통해 자료의 특징을 찾아내고 탐색하는 것 시각화¶ 시각화를 통해 데이터의 특징을 찾아내는데 효과적 자료의 특징은 어떤 결론을 확증하는증거 Report R에서 그래프를 그래는 이유¶ 빠르게 데이터를 탐색하기 위해(EDA) => plot() 보다 정교한 데이터의 특징을 나타내기 위해 => ggplot2 패키지 Report용 => rChart 패키지 R에.. 2020. 7. 8. 이전 1 2 3 4 다음