4. 데이터 전처리

1) 분석 파일을 R로 불러오기

먼저 dplyr과 ggplot2 패키지를 설치한다

library(dplyr)
## 
## 다음의 패키지를 부착합니다: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
library(ggplot2)

getwd()
## [1] "C:/Users/SiriN/Documents/R/temp"

2) 시각화 코드

  • 데이터를 불러옵니다 Sepal.Length, Sepal.Width 두 변수에 관한 산점도를 시각화 작성한다
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) +
  geom_point()