I’ve been working on creating graphs throughout my final project of the year which was about a statistical and economic analysis of the Tunsian economy. I want to share with you a graph showing the distribution of population in Tunisia over years then to analyze the result. I use the package ggplot2 to create this graph.

Here’s the graph:

data=read.table(file=file.choose(),header=TRUE,sep=";")

library(ggplot2)

ggplot(data,aes(x=Year,y=Population,shape=Gender))+ylab("Population (%)")+geom_point(size=3)+
geom_line(aes(colour=Gender),size=0.8)+ggtitle("Distribution of Tunisian population over years")+theme_bw()

A descriptive analysis:

For the first time since the independence reached in 1956, the number of women exceeds the number of men in Tunisia in 2014.