powered by
Bind parliament chart data
bind_parliament_chart_data(., data = NULL, party = NULL, seats = NULL)
A Flourish chart
The prior Flourish object. No need to specify name if piping graph as the graph will take the first argument (i.e. the prior existing graph).
Data.
Party
Seats. This should point to the column with election data. Flourish type hint: columns
try( flourish(chart_type = "parliament", api_key = Sys.getenv("FLOURISH_API_KEY")) |> bind_parliament_chart_data(gapminder) )
Run the code above in your browser using DataLab