Grafy v purrr

Foundations of Functional Programming with purrr

Auriel Fournier

Instructor

Připomenutí ggplot()

  • ggplot() vyžaduje datový rámec
  • Vždy začínejte s ggplot()
  • Přidávejte vrstvy pomocí +
  • geom_*() určuje typ grafu
ggplot(data = dataframe, 
       aes(x = columnA,
       y = columnB))+
  geom_point()

Bodový graf hmotnosti ptáků vs. délky jejich křídel

Foundations of Functional Programming with purrr

Vizualizace a purrr

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

Bodový graf hmotnosti ptáků vs. délky jejich křídel

Foundations of Functional Programming with purrr

Let's purrr-actice!

Foundations of Functional Programming with purrr

Preparing Video For Download...