View source: R/get_pop_pyramid.R
get_pop_pyramid | R Documentation |
This is the code to get a population pyramid with the number of both Spanish and foreigner players along the seasons for the ACB league. This aids in discussion of nationality imbalance.
get_pop_pyramid(df, title, language)
df |
Data frame that contains the ACB players' nationality. |
title |
Title of the plot |
language |
String, "eng" for English labels; "esp" for Spanish labels. |
Graphical device.
Guillermo Vinue
## Not run:
# Load the data_app_acb file with the ACB games
# from seasons 1985-1986 to 2017-2018:
load(url("http://www.uv.es/vivigui/softw/data_app_acb.RData"))
title <- " Number of Spanish and foreign players along the ACB seasons \n Data from www.acb.com"
get_pop_pyramid(data_app_acb, title, "eng")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.