Category Archives: Data Analysis

Calculating simple portfolio statistics with R

 

 

 

Data examples using World Bank Data

Data examples using World Bank Data in combination with the ggplot package in R.

Tidyverse methods and functions were used to generate a combined data frame (tibble) for all countries and indicators.

 




world_population_plots

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

browseURL(“https://data.worldbank.org/”)

 

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

WB Indicators:

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

 

Basic R commands – 1



Renewable electricity output – Regions

 

 

Renewable electricity output – World Map

 

 

 

 

 

Renewable electricity output – Statistics

 
# income categories

– Low income
– Lower middle income
– Upper middle income
– High income

 

Using trigonometric functions in R

R uses radiant as input for trigonometric functions.

Now we can plot the function.

And by playing with the functions we get a funny graphic output.


And if we include the tangent, the graphic looks like this:

 

Plane crash data