bind_parliament_chart_data: Bind parliament chart data

View source: R/bind_parliament_chart_data.R

bind_parliament_chart_dataR Documentation

Bind parliament chart data

Description

Bind parliament chart data

Usage

bind_parliament_chart_data(., data = NULL, party = NULL, seats = NULL)

Arguments

.

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

Data.

party

Party

seats

Seats. This should point to the column with election data. Flourish type hint: columns

Value

A Flourish chart

Examples

try(
  flourish(chart_type = "parliament", api_key = Sys.getenv("FLOURISH_API_KEY")) |> 
  bind_parliament_chart_data(gapminder)
)

flourishcharts documentation built on Oct. 30, 2024, 9:07 a.m.