## Loading required package: WDI
## Loading required package: tidyverse
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.4     ✔ readr     2.1.5
## ✔ forcats   1.0.1     ✔ stringr   1.5.2
## ✔ ggplot2   4.0.0     ✔ tibble    3.3.0
## ✔ lubridate 1.9.4     ✔ tidyr     1.3.1
## ✔ purrr     1.1.0     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

Import Literacy Rate Data from World Bank for Colombia, Mexico and Cuba

## # A tibble: 40 × 5
##    country  iso2c iso3c  year literacy
##    <chr>    <chr> <chr> <int>    <dbl>
##  1 Colombia CO    COL    2020     95.9
##  2 Colombia CO    COL    2019     95.5
##  3 Colombia CO    COL    2018     95.3
##  4 Colombia CO    COL    2017     95.1
##  5 Colombia CO    COL    2016     94.9
##  6 Colombia CO    COL    2015     94.4
##  7 Colombia CO    COL    2014     94.5
##  8 Colombia CO    COL    2011     93.7
##  9 Colombia CO    COL    2010     93.5
## 10 Colombia CO    COL    2009     93.4
## # ℹ 30 more rows

Discussion: *This tibble is for the three countries and has 40 rows and 5 columns

Summary Statistics for Colombia

## [1] "The Mean for Colombia is:  93.6877381529326"
## [1] "The Median for Colombia is:  93.4899978637695"
## [1] "The Standard Deviation for Colombia is:  1.41037579728215"

Discussion: The mean and median literacy rates for Colombia are similar, suggesting a symmetric distribution with few outliers. The standard deviation of 1.41 indicates how much the literacy rate fluctuated over time. A low value implies consistent progress or stability, while a high value would suggest more volatility.

Visualization

Histogram for Colombia

### Density Plot for Colombia Discussion: The histogram shows that most literacy rates are clustered in the high 80s and 90s, reflecting strong literacy rates. The density plot confirms this with a sharp peak, indicating low variability and consistent improvement over time.

Cleveland Dotplot for 2020

### Time-Series Faceted by Country ### Time-Series Combined Plot