View source: R/bicluster_net_methods.R
| plot_piechart_bicluster_network | R Documentation | 
Plot a bicluster network with piecharts as nodes.
plot_piechart_bicluster_network( bic_net, bics, class_vector, colors, named = TRUE, MARGIN = "column", new_layout = TRUE, ... )
| bic_net | A  | 
| bics | The corresponding list of biclusters from  | 
| class_vector | A (named) vector with class affinities. Every occuring element in the biclustes must have a non NA value in this list. | 
| colors | Colors used for the classes. Must be a vector with colors in the order of sort(unique(class_vector)). | 
| named | Indicates if  | 
| MARGIN | Must be "row" or "column". Indicates which dimension of the bicluster should be used for coloring. | 
| new_layout | If  | 
| ... | Additional parameters forwarded
to  | 
If new_layout, a new network layout is returned that can
be used for other plots.
m <- matrix(seq(1:16), nrow=4)
# m <- matrix(rnorm(10000), nrow=100)
# bics <- c(run_fabia(m), run_isa(m), run_plaid(m))
# bn <- bicluster_network(bics, m)
# groups <- ifelse(runif(100)< 0.5, "group1", "group2")
# cols <- c("group1"="blue", "group2"="grey")
# plot_piechart_bicluster_network(bn, bics, groups, cols, named=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.