먼저 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)
ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width)) +
geom_point(colour="skyblue", size=2)