Ghana_2021_school_attendance_geometry: Ghana School Attendance Indicator data plus geometry

Description Usage Format Source Examples

Description

The Ghana_2021_school_attendance_geometry dataset contains school attendance indicators for respondents in the 16 regions of Ghana surveyed in the 2021 Ghana Population and Housing Census plus Ghana regional administrative boundaries.

Usage

1

Format

A data frame with 64 rows and 10 variables:

Source

https://statsghana.gov.gh/gssmain/fileUpload/pressrelease/2021%20PHC%20General%20Report%20Vol%203D_Literacy%20and%20Education.pdf

https://data.humdata.org/dataset/ghana-administrative-boundaries

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Not run: 

#Example

#Create a interactive map with the package tmap that displays the
#regional distribution of percentage of students 3 years or older who have dropped out of school.

#Load required packages
library(sf)
library(tmap)
library(dplyr)
library(magrittr)

#Load geometry data
data("Ghana_2021_school_attendance_geometry", package = "rGhanaCensus")


#Convert to sf data frame and assign a name
#In this example, "Ghana_edu_sf" will be the name of the sf data frame created.

Ghana_edu_sf<- sf::st_as_sf(Ghana_2021_school_attendance_geometry)


#Use tmap to create interactive map
tmap_mode("plot")

Ghana_edu_sf %>%
               dplyr::filter(Locality=="Urban") %>%
               tm_shape()+
               tm_polygons(id="Region", col="Percent_Dropped_out_of_School")+
               tm_text(text="Percent_Dropped_out_of_School")+
               tm_facets(by="Gender")

## End(Not run)

rGhanaCensus documentation built on Jan. 14, 2022, 1:07 a.m.