age_shiny: Lifespan Age Trends

View source: R/age_shiny.R

age_shinyR Documentation

Lifespan Age Trends

Description

Provide estimated lifespan age trends of neuroimaging-derived brain structures through shiny app.

Usage

age_shiny(age_list, features, quantile_type, use_plotly = TRUE)

Arguments

age_list

A list containing all ROIs' true volumes, age trend estimates, and the fitted GAMLSS model.

features

A vector of roi names.

quantile_type

A vector of quantile types (e.g., c("quantile_25", "median", "quantile_75"))

use_plotly

A boolean variable that indicates whether to display the age plot using the plotly package.

Details

When this function is called, it starts a Shiny application in the user's default web browser. Execution is blocked until the app is closed.

Value

This function does not return a value. It launches a Shiny app.

Examples

sub_df <- age_df[,c("Volume_1", "age", "sex", "ICV_baseline")] |> na.omit()
colnames(sub_df) <- c("Volume_1", "age", "sex", "icv")
age_list <- list("Volume_1" = age_list_gen(sub_df = sub_df))
quantile_type <- c("quantile_25", "median", "quantile_75")
if(interactive()){
  age_shiny(age_list = age_list, features = "Volume_1", quantile_type = quantile_type)
}

ComBatFamQC documentation built on April 4, 2025, 12:24 a.m.