View source: R/scatter_2var_plot.R
scatter_2var_plot | R Documentation |
Generate scatter correlation plot for 2 variables
scatter_2var_plot( data_type = c("variable", "variable.locality"), varId, year = NULL, unitParentId = NULL, unitLevel = NULL, aggregateId = NULL, lang = c("pl", "en"), ... )
data_type |
A type of data used for generating plot, "variable"(default), "variable.locality" |
varId |
A vector of 2 variable Id's. Use |
year |
A vector of years. If |
unitParentId |
A 12 character NUTS id code of interested unit.
(Used only with data_type equal "variable" or "variable.locality")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 |
lang |
A language of returned data, "pl" (default), "en" |
... |
Other arguments passed on to |
Generate quickly 'ggplot2' scatter correlation plot, using BDL data.
Scatter plot 2 variables for given units with regression line, confidence interval and correlation coefficient.
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))
.
A ggplot2 plot.
# scatter_2var_plot(data_type = "variable" ,c("415", "60559"), unitLevel = "2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.