Provides a code framework for creating a combination matrix with code instead of using lists.
Needed because sometimes ComplexHeatmap::make_comb_mat will choke on list elements.
See also
Other Graphics:
ft_add_figure_numbers(),
ft_add_padding(),
ft_discretize_colorscale(),
ft_ggplot2_add_ellipse(),
ft_ggplot2_colors(),
ft_ggplot2_legend_inside(),
ft_ggplot2_rotate_axis_labels(),
ft_ggplot2_self_colors(),
ft_plot_temp_file(),
ft_upset_add_counts()
Other Code Generators:
ft_add_padding(),
ft_complexheatmap_scale(),
ft_data_dictionary(),
ft_ggplot2_add_ellipse(),
ft_ggplot2_colors(),
ft_ggplot2_legend_inside(),
ft_ggplot2_rotate_axis_labels(),
ft_ggplot2_self_colors(),
ft_knitr_opts(),
ft_plot_includes(),
ft_remove_figures(),
ft_rename_code(),
ft_title_block(),
ft_upset_add_counts()
Other UpSet:
ft_upset_add_counts()
Examples
ft_upset_comb_matrix()
#> make_combination_matrix = function(list_items) {
#> all_items = sort(unique(unlist(list_items)))
#> comb_mat = matrix(0, nrow = length(all_items), ncol = length(list_items))
#> colnames(comb_mat) = names(list_items)
#>
#> for (i_out in seq_along(list_items)) {
#> comb_mat[all_items %in% list_items[[i_out]], i_out] = 1
#> }
#> return(comb_mat)
#> }