Reorder not working in ggplot with my current data frame
Reorder not working in ggplot with my current data frame I'm currently trying to make my own graphical timeline like the one at the bottom of this page. I scraped the table from that link using the rvest package and cleaned it up. Here is my code: library(tidyverse) library(rvest) library(ggthemes) library(lubridate) URL <- "https://en.wikipedia.org/wiki/List_of_Justices_of_the_Supreme_Court_of_the_United_States" justices <- URL %>% read_html %>% html_node("table.wikitable") %>% html_table(fill = TRUE) %>% data.frame() # Removes weird row at bottom of the table n <- nrow(justices) justices <- justices[1:(n - 1), ] # Separating the information I want justices <- justices %>% separate(Justice.2, into = c("name","year"), sep = "(") %>% separate(Tenure, into = c("start", "end"), sep = "n–") %>% separate(end, into = c("end", "reason"), se...
