hist_plots_mortality: hist_plots_mortality

View source: R/predictors_functions.R

hist_plots_mortalityR Documentation

hist_plots_mortality

Description

#' Function to plot the histogram of the mortality score separated for different age ranges as a plotly image

Usage

hist_plots_mortality(mort_score, phenotypes)

Arguments

mort_score

data.frame containing the mortality score

phenotypes

data.frame containing age

Value

plotly image with the histogram of the mortality score separated in 3 age ranges

Examples

library(MiMIR)
library(plotly)
#' #load the dataset
metabolic_measures <- synthetic_metabolic_dataset
phenotypes <- synthetic_phenotypic_dataset

#Compute the mortality score
mortScore<-comp.mort_score(metabolic_measures,quiet=TRUE)
#Plot the mortality score histogram at different ages
hist_plots_mortality(mortScore, phenotypes)


DanieleBizzarri/MiMIR documentation built on March 1, 2023, 11:02 p.m.