Not automatically possible like in ggplot2
, but you can get around it using purrr::map()
and hw_grid()
.
Here's another example using FiveThirtyEight's data.
str(new_char_per_year)
## List of 2
## $ DC :Classes 'tbl_df', 'tbl' and 'data.frame': 73 obs. of 5 variables:
## ..$ comic : chr [1:73] "DC" "DC" "DC" "DC" ...
## ..$ year : Factor w/ 73 levels "1939","1940",..: 1 2 3 4 5 6 7 8 9 10 ...
## ..$ n : int [1:73] 18 64 61 52 14 15 7 9 20 20 ...
## ..$ couleur: chr [1:73] "#518cca" "#518cca" "#518cca" "#518cca" ...
## ..$ titre : chr [1:73] "DC, New Earth continuity" "DC, New Earth continuity" "DC, New Earth continuity" "DC, New Earth continuity" ...
## $ Marvel:Classes 'tbl_df', 'tbl' and 'data.frame': 73 obs. of 5 variables:
## ..$ comic : chr [1:73] "Marvel" "Marvel" "Marvel" "Marvel" ...
## ..$ year : Factor w/ 73 levels "1939","1940",..: 1 2 3 4 5 6 7 8 9 10 ...
## ..$ n : int [1:73] 69 221 207 244 198 134 97 90 72 116 ...
## ..$ couleur: chr [1:73] "#e23636" "#e23636" "#e23636" "#e23636" ...
## ..$ titre : chr [1:73] "Marvel, Earth-616 continuity" "Marvel, Earth-616 continuity" "Marvel, Earth-616 continuity" "Marvel, Earth-616 continuity" ...