R로 하는 탐색적 데이터 분석
Andrew Bray
Assistant Professor, Reed College
ggplot(cars, aes(x = msrp)) +
geom_density() +
facet_grid(pickup ~ rear_wheel)

ggplot(cars, aes(x = msrp)) +
geom_density() +
facet_grid(pickup ~ rear_wheel, labeller = label_both)

ggplot(cars, aes(x = msrp)) +
geom_density() +
facet_grid(pickup ~ rear_wheel, labeller = label_both)
table(cars$rear_wheel, cars$pickup)
FALSE TRUE
FALSE 306 12
TRUE 98 12
모양
크기
색상
패턴
움직임
x좌표
y좌표
R로 하는 탐색적 데이터 분석