https://github.com/robin-ochieng/Africa-Insurance-Dashboard
This Shiny dashboard provides an interactive overview of life insurers across African countries. It includes various visualizations and data tables to help users understand the implementation status of IFRS17, gross written premiums, and distribution of insurers based on premium categories.
https://github.com/robin-ochieng/Africa-Insurance-Dashboard
Last synced: 4 months ago
JSON representation
This Shiny dashboard provides an interactive overview of life insurers across African countries. It includes various visualizations and data tables to help users understand the implementation status of IFRS17, gross written premiums, and distribution of insurers based on premium categories.
- Host: GitHub
- URL: https://github.com/robin-ochieng/Africa-Insurance-Dashboard
- Owner: robin-ochieng
- Created: 2024-07-24T11:26:27.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T09:16:51.000Z (8 months ago)
- Last Synced: 2024-10-10T16:05:12.910Z (6 months ago)
- Language: R
- Homepage:
- Size: 187 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - robin-ochieng/Africa-Insurance-Dashboard - This Shiny dashboard provides an interactive overview of life insurers across African countries. It includes various visualizations and data tables to help users understand the implementation status o (R)
README
# Life Insurance in Africa Dashboard
## Overview
This Shiny dashboard provides an interactive overview of life insurers across African countries. It includes various visualizations and data tables to help users understand the implementation status of IFRS17, gross written premiums, and distribution of insurers based on premium categories.
## Features
- **Map Visualization**:
- Count of insurers by gross written premium categories (Below $40M and Above $40M).
- Gross written premium distribution across Africa.
- **Dashboard**:
- Key metrics such as total gross written premium, average gross written premium per insurer, and IFRS17 implementation status.
- Interactive donut chart showing the IFRS17 implementation status by country.
- Interactive table for life insurers filtered by country and gross written premium category.
- Bar plot showing gross written premium by life insurers.## Data
The data for this dashboard is sourced from an Excel file (`data.xlsx`) containing information about life insurers and IFRS17 implementation status. The Excel file consists of two sheets:
- `Insurers`: Contains information about life insurers, including their country, latitude, longitude, and gross written premium in USD.
- `IFRS17`: Contains information about the IFRS17 implementation status by country.## Installation
1. **Clone the repository**:
```sh
git clone https://github.com/yourusername/life-insurance-africa-dashboard.git
```2. **Install the required packages**:
```r
install.packages(c("shiny", "ggplot2", "plotly", "scales", "bs4Dash", "DT", "readxl", "dplyr", "bslib", "shinycssloaders", "leaflet", "sf", "rnaturalearth", "viridis", "tidyverse"))
```3. **Run the Shiny app**:
```r
shiny::runApp()
```## Usage
- **Map Tab**: Visualize the distribution of life insurers based on gross written premium categories and total gross written premium across African countries.
- **Dashboard Tab**: View key metrics and visualizations, including the IFRS17 implementation status, gross written premium distribution, and an interactive table of life insurers.## Custom Theme
The dashboard uses a custom theme defined using the `bslib` package. The theme includes a dark background with contrasting text and highlights for an improved user experience.
## Screenshots


## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
## Acknowledgements
- The `bs4Dash` package for creating a beautiful dashboard layout.
- The `plotly` package for interactive visualizations.
- The `leaflet` package for map visualizations.
- The `readxl` package for reading data from Excel files.
- The `rnaturalearth` package for natural earth data.## Contact
For any questions or feedback, please contact [Robin Ochieng](:[email protected]).