Step 1: Required Packages

Ensure you have the necessary packages installed:

Data

The data represents the percentage of rural areas in Tunisia that were electrified in the given years.

year <- c(1976, 1981, 1986, 1991, 1996, 2001, 2006, 2010)
percentage <- c(6, 16, 28, 48, 75, 92, 98.5, 99.5)

df <- data.frame(year, percentage)

Plot

The following plot shows the trend of rural electrification in Tunisia: