Learn R Programming

AgeTopicModels (version 0.1.0)

plot_lfa_topics: Title plot topic loadings for LFA.

Description

Title plot topic loadings for LFA.

Usage

plot_lfa_topics(disease_names, beta, plot_title = "")

Value

a ggplot object of the topic loading.

Arguments

disease_names

the list of disease names, ordered as the topic.

beta

disease topics, which should be a matrix of K-by-disease.

plot_title

the title of the figure.

Examples

Run this code
disease_list <- UKB_349_disease$diag_icd10[1:50]
topics <- matrix(rnorm(10*length(UKB_349_disease)), nrow = length(UKB_349_disease), ncol = 10)
plot_lfa_topics(disease_names = disease_list,
        beta = topics,
        plot_title = "Example noisy topics presentation")

Run the code above in your browser using DataLab