pie_plot: Generate quick pie plot

Description Usage Arguments Details Value Examples

Description

Generate pie plot for varaible/multiple units

Usage

1
2
3
pie_plot(data_type = c("variable", "variable.locality"), varId, year,
  unitParentId = NULL, unitLevel = NULL, aggregateId = NULL,
  lang = c("pl", "en"), ...)

Arguments

data_type

A type of data used for generating plot, "variable"(default), "variable","variable.locality"

varId

A variable Id. Use search_variables or get_variables to find variable id code.

year

A single year. If NULL (default) returns data for all available years.

unitParentId

A 12 character NUTS id code of interested unit. Use search_units or get_units to find unit id code.

unitLevel

A number from 0 to 6, filters the returned unit by its level. (Used only with data_type equal "variable") If NULL (default) no level filters apply. Use get_levels to find more info.

aggregateId

An aggregate id. Use get_aggregates for more info.

lang

A language of returned data, "pl" (default), "en"

...

Other arguments passed on to GET. For example a proxy parameters, see details.

Details

Generate quickly ggplot2 plot, using BDL data.

Pie plot one variable value for multiple units on single year.

To use a proxy to connect, a use_proxy can be passed to GET. For example get_request(id, filters, config = httr::use_proxy(url, port, username, password)).

Value

A ggplo2 plot.

Examples

1
   bld_pie_plot <- pie_plot(data_type ="variable" ,"60559", "2006", unitLevel = "2")

KaniaKrzysztof/bdl documentation built on June 28, 2019, 8:09 p.m.