pie_plot {bdl} | R Documentation |
Generate quick pie plot
Description
Generate pie plot for variable/multiple units
Usage
pie_plot(
data_type = c("variable", "variable.locality"),
varId,
year,
unitParentId = NULL,
unitLevel = NULL,
aggregateId = NULL,
label = T,
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 |
year |
A single year. If |
unitParentId |
A 12 character NUTS id code of interested unit. Use |
unitLevel |
A number from 0 to 6, filters the returned unit by its level.
(Used only with data_type equal "variable")
If |
aggregateId |
An aggregate id. Use |
label |
Logical; if TRUE (default) adds labels. |
lang |
A language of returned data, "pl" (default), "en" |
... |
Other arguments passed on to |
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 ggplot2 plot.
Examples
# pie_plot(data_type ="variable" ,"1", "2018",unitParentId="042214300000", unitLevel = "6")