Presentation: graphs: although your tables have captions, your plots do not-- remember to use ggtitle() to add titles to your plots
Remember to use xlab() and ylab() to add informative labels to your axes
Some of your axis labels correspond to countries or continents, but there is no indication of what the numeric values represent (e.g. your Asia vs Americas plot doesn't say median life expectancy anywhere on the plot)
Coding style: some of your code contains pipes nested in function calls-- there's nothing wrong with this, but saving the results of pipe code into a variable using <-, and then using that variable in the function call would make your code more readable, e.g. (taken from Exercise 3.3)
full_join(guest, email2,
by = c("name" = "guest")) %>%
DT:datatable(caption = "Super Guestlist: all wedding guests")
### Some Specific Praise
* I like that you commented your code with what you're planning to do, it makes the code much easier to understand
* I like the colour scheme of your `html_document`
* **Achievement, creativity**: I admire you for choosing the more complicated options to complete 👍
### Something I Learned
* I can add captions to `kable` by using the `caption =` argument
### Some Specific Constructive Criticism
* There is an y vs x plot that is not very informative
* In fact, it looks like your x and y values correspond to years (so your axis scales need to be changed)
* The one data point doesn't really inform of anything
### Something You Struggled With
* In Exercise 3.1 and 3.3, you can see your datatable extends past the width of the code chunk boxes. In order to fit them to the same width, you can add a scroll bar (see my assignment for an example), by modifying your code slightly (taken from Exercise 3.3), using the `options =` argument in `datatable()`:
make a super guest list by joining both tibbles
superlist will have all the jokes from 'guest' nibble, whether we have their email or not, as well as folks who we have email for who weren't included on the guest list.
Peer-Review HW-04 for Hannah McSorley
Remarks:
Elaborate On Above
ggtitle()
to add titles to your plotsxlab()
andylab()
to add informative labels to your axeslife expectancy
anywhere on the plot)<-
, and then using that variable in the function call would make your code more readable, e.g. (taken from Exercise 3.3)full_join(guest, email2, by = c("name" = "guest")) %>% DT:datatable(caption = "Super Guestlist: all wedding guests")
make a super guest list by joining both tibbles
superlist will have all the jokes from 'guest' nibble, whether we have their email or not, as well as folks who we have email for who weren't included on the guest list.
full_join(guest, email %>% mutate(guest = strsplit(as.character), ", ")) %>% unnest(guest), by = c("name = "guest")) %>% DT:datatable(caption = "Super Guestlist: all wedding guests", options = list(scrollX = TRUE, fixedColumns = TRUE))
Replace this:
email %>% mutate(guest = strsplit(as.character), ", ")) %>% unnest(guest)
With this:
separate_rows(email, guest, sep = ", ")