使用 purrr 的函式式程式設計基礎
Auriel Fournier
Instructor
ggplot() 需要 data frame 輸入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 的函式式程式設計基礎