This report visualizes the population growth in Bangladesh over the years using a simple line plot. The data is taken from a CSV file containing population values of different countries by year.
pop_data <- read.csv("population.csv")
head(pop_data)
## Entity Year all.years
## 1 Bangladesh 1950 41206858
## 2 Bangladesh 1951 42022310
## 3 Bangladesh 1952 42893013
## 4 Bangladesh 1953 43791389
## 5 Bangladesh 1954 44741297
## 6 Bangladesh 1955 45767687
plot(pop_data$Year, pop_data$Bangladesh,
type = "o",
col = "green",
pch = 16,
lwd = 2,
xlab = "Year",
ylab = "Population (millions)",
main = "Population Growth in Bangladesh",
sub = "Source: Population dataset (Bangladesh)")
grid()