get_heatmap_by_cov {BMRMM} | R Documentation |
Print and plot the heat-map of mixture probabilities for covariate levels
get_heatmap_by_cov( results, cov_labels = NULL, cov_index = 1:ncol(results$Xexgns), decimal_pts = 2, include_plot = TRUE )
results |
results of duration times, i.e., results$results_duration |
cov_labels |
a matrix such that row i represents the labels for covariate i; default labels for covariate i is 1:i |
cov_index |
a vector of indices of covariate to plot; default is 1:Num_Covariates |
decimal_pts |
specify the number of decimal points of the results; default is 2 |
include_plot |
display plot if TRUE; default is TRUE |
Print a matrix for each covariate. Each matrix has K rows, where K is the number of components. The number of columns of a matrix equals to the total number of levels of the covariate.
No return value, called for printing and plotting heatmaps for mixture probabilities for each covariate.
results <- BMRMM(foxp2_sm,num_cov=2,simsize=50) get_heatmap_by_cov(results$results_duration) get_heatmap_by_cov(results$results_duration,cov_index=c(1,2))