powered by
Bind election results chart data
bind_election_results_chart_data( ., values_now_data = NULL, values_historical_data = NULL, values_now_name = NULL, values_now_values = NULL, values_historical_name = NULL, values_historical_values = 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).
Values now data.
Values historical data.
Region name. The name of the data series (eg. voting district). Flourish type hint: column
Results by party. One column per party, with party names as header rows. Flourish type hint: columns
try( flourish(chart_type = "election_results", api_key = Sys.getenv("FLOURISH_API_KEY")) |> bind_election_results_chart_data(gapminder) )
Run the code above in your browser using DataLab