Rで何かをしたり、読書をするブログ

政府統計の総合窓口のデータや、OECDやUCIやのデータを使って、Rの練習をしています。ときどき、読書記録も載せています。

World Bank Income share held by lowest 20% data analysis 4 - Visualize change net and change percent by region, by income group.

Generated by Bing Image Creator: Joyful landscape view of green grass field, photo

 

www.crosshyou.info

This post is following of the above post.

In the previous post, I calculated change net and change percent between 2006 and 2008.

Let's visualize them.

First, let's make a histogram for change net.

I used stat_bin() function to add number of observations to a histogram.

Next, let's make change percent histogram.

The both change net and change percent are like normal distibution with right skewed.

Next, let's see regional characteristics.

First, I use group_by() function and suumarize() fuction to calculate average values by region, then, I use geom_point(), geom_text() function to draw a plot and text.

Latain America & Carribbean region is the most changed region.

How about by income?

Lower middle income is the most changed income group and High Income is the least changed group.

Let's see which country ihas the largest change.

Moldova has the largest change net.

Bolivia has the largest change percent.

Which country has the largest negative change?

Luxembourg has has the largest negative change net.

Luxembourg has the largest nagative change percent.

Which country has the highest lowest 20% shcare?

Czechia and Moldova have the largest share in 2018.

Slovenia has the highest share in 2006.

Lastly, which country has the lowest share?

Brazil has the lowest share of lowest 20% in 2018.

Honduras has the lowest share in 2006.

That's it. Thank you!

Next post is

www.crosshyou.info

 

To read from the first post,

www.crosshyou.info