Site icon R-bloggers

Building a Malaysian Population Dashboard with Quarto in R

[This article was first published on ZAHIER NASRUDIN, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
< section id="what-is-quarto-dashboard" class="level2">

What is quarto dashboard

Quarto Dashboards make it easy to create interactive dashboards using Python, R, Julia, and Observable

< section id="benefits" class="level3">

Benefits

< section id="my-population-dashboard" class="level3">

My population dashboard

If you prefer to skip the explanation and go straight to my source code, you can find it here: link

In this blog, I am building a population dashboard for Malaysia using data from the 2020 Census provided by the Department of Statistics Malaysia (DOSM). This dashboard aims to:

< section id="data-cleaning-and-preparation" class="level2">

Data Cleaning and Preparation

The cleaned and formatted datasets are available in the repository for your reference.

< section id="my-quarto-dashboard-structure" class="level2">

My Quarto Dashboard Structure

├── dosm_population_dashboard.Rproj
  ├── file
  ├── function
  ├── styles
  ├── index.qmd
  └── index.html

Visualizing Population Data

Our dashboard aims to visualize population data in Malaysia. Here’s how we’ll achieve this:

.girafe_container_std  {
    height: 100%;
    width: 100%;
    position: relative; 
    margin-left: 10px; /* Adjust the value as needed for the left margin */
    margin-right: 10px; /* Adjust the value as needed for the right margin */
}
< section id="layout-and-design" class="level2">

Layout and Design

I have created 6 pages:

  1. Overview: General population and density by state in Malaysia.

  2. By Ethnicity: Distribution and gender ratio of the population (female to male).

  3. By Age: Distribution and gender ratio of the population (female to male).

  4. By Marital Status: Distribution and gender ratio of the population (female to male).

  5. By Religion: Distribution and gender ratio of the population (female to male).

  6. About: Disclaimer and remarks

< section id="deployment" class="level2">

Deployment

This dashboard is currently deployed to Github Pages and the open source can be found here: https://zahiernasrudin.github.io/dosm_population_dashboard/

Refer to the official Quarto documentation for detailed instructions on publishing to GitHub Pages: https://quarto.org/docs/publishing/github-pages.html

To leave a comment for the author, please follow the link and comment on their blog: ZAHIER NASRUDIN.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Exit mobile version