I am trying to rename the columns headings for a facet_wrap. Instead of "False" and "True" I need them to say "1946-1992" and "1993-" respectively. Thank you!
library(tidyverse)
IdealPoint <- IdealpointestimatesAll_Apr2020 %>% #
select(ccode, session, IdealPoint) %>%
mutate(year = session + 1945)
CINC <- NMC_5_0 %>%
select(stateabb, ccode, year, cinc)
Merged <- CINC %>%
group_by(stateabb, year) %>%
filter(year >= 1946) %>%
full_join(IdealPoint, by = c("ccode" = "ccode", "year" = "year"))
ggplot(data=Merged,
aes(x= log(cinc),y= IdealPoint, color = ccode,
)) + geom_point() +
facet_wrap(~year >=1993) +
ylab("Ideal UN Voting Point") +
xlab("National Material Capability") +
ggtitle("National Material Capability Vs. State Positions on US-Led Liberal Order") +
theme_bw()