Date: 5-01-2025
The goal of the package LifelinesDataDashboard is to visualize the Lifelines dataset and to show the significance of correlations between gender, age, income and many more. This dashboard has interactive functionality to make visualizations based on filters of you own choosing, like age and gender.
Screenshot of UIUse the hosted version of the Lifelines datadashboard at
http://lifelines.duckdns.org
Don’t use HTTPS, HTTP only. In order
to use the datadashboard website, use the username / password that I put
on blackboard.
You can install the development version of LifelinesDataDashboard from GitHub with:
# First install het pak library:
install.packages("pak")
# Then, use pak to install the package from github:
pak::pak("Fl-ris/Lifelines_data_dashboard")The code snippets below demonstrate some of the functionality of the LifelinesDataDashboard package.
First, load the library.
library(LifelinesDataDashboard)
#>
#> Attaching package: 'LifelinesDataDashboard'
#> The following objects are masked _by_ '.GlobalEnv':
#>
#> load_dataset, run_datadashboardStart the application with the function run_datadashboard()
run_datadashboard()To only load the dataset without running the dasboard: (This would otherwise be done using the dashboard interface.)
load_dataset(here("Data", "Lifelines Public Health dataset - 2024.csv"))The plotting functions can also be called upon without the shiny interface:
gender_dist(dataset = lifelines_df)weight_dist(dataset = lifelines_df)finance_neighborhood_cor(dataset = lifelines_df)First, select what kind of graph you want to use for the visualization,
this dictates what comparisons you can make.
If wanted, change the
color theme and alpha-value. The alpha-value is used to change how
translucent the colors are, this is helpful for the scatterplot when
there is a lot of overlap between the points.
If only the count
should be displayed, check the “Compare count” checkbox. If left
unchecked, two variables will be compared to each other.
Then, select the variable to be displayed on the X- and Y-variable respectively using the input box. Optional: Filter the participants based on age, height, weight and income.
Dependencies:
Dependencies for the LifelinesDataDashboard library:
- R (>= 3.5.0)
- pak
- Other libraries will be automatically installed with ‘pak(“Fl-ris/Lifelines_data_dashboard”)’
Dependencies for the Notebook with my analysis:
- R
- tidyverse
- stringr
Author: F.J.A. Menninga, Github name: fl-ris



