Skip to content

Instantly share code, notes, and snippets.

@StaffanBetner
Created June 17, 2017 14:03
Show Gist options
  • Save StaffanBetner/e0c2f585e2595605a29046b203080ab3 to your computer and use it in GitHub Desktop.
Save StaffanBetner/e0c2f585e2595605a29046b203080ab3 to your computer and use it in GitHub Desktop.
joined_dataset %>% filter(vald == 1) %>%
ggplot(aes(
x = F1,
y = F2,
name = Namn,
color = Parti,
group = Parti
)) +
geom_point() +
scale_colour_manual(values = partycols, labels=c("Centre Party",
"Liberals",
"Christian Democrats",
"Green Party",
"Moderate Party",
"Swedish Social Democratic Party",
"Sweden Democrats","Left Party")) +
labs(x = "Left vs. Right", y = "Traditional-Authoritarian-Nationalist vs. Green-Alternative-Libertarian", color =
"Party") +
scale_y_continuous(breaks = NULL) +
scale_x_continuous(breaks = NULL) +
coord_fixed(ratio = 3 / 4) +
ggtitle("Members of parliament in Sweden")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment