purrr로 배우는 함수형 프로그래밍 기초
Auriel Fournier
Instructor
ggplot()은 데이터 프레임 입력 필요ggplot()으로 시작geom_*()으로 그래프 유형 지정ggplot(data = dataframe,
aes(x = columnA,
y = columnB))+
geom_point()

birddf <- bird_measurements %>%
map_df(~ data_frame(
wing_length = .x[["wing length"]],
weight = .x[["weight"]])) %>%
ggplot(aes(x = weight,
y = wing_length))+
geom_point()

purrr로 배우는 함수형 프로그래밍 기초