使用 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 掌握函数式编程基础