A review of ggparliament (2.0.0)

ggparliament does not work fully

I tried running this package on Indian General Elections 2019. But I keep getting error. I used the same code as given in documentation, first on Indian election data and then on electiondata as provided in package. It seems there is an issue in scalecolor_manul 'limits' argument.If I remove limits argument then code works but chart does not look proper.

Reproducing code below:

library(ggplot2) library(ggparliament)

library(dplyr) library(tidyr)

election_data

usrep <- electiondata %>% filter(country == "USA" & year == 2016 & house == "Representatives")

<- parliamentdata(electiondata = usrep, type = "semicircle", parlrows = 10, partyseats = usrep$seats)

us <- ggplot(ushousesemicircle, aes(x = x, y = y, colour = partyshort)) + geomparliamentseats() + themeggparliament() + labs(colour = NULL, title = "United States Congress") + scalecolourmanual(values = ushousesemicircle$colour, limits = ushousesemicircle$party_short)

us

error got: Warning message: Removed 435 rows containing missing values (geom_point)