plot_piechart_bicluster_network {mosbi} | R Documentation

## Plot a bicluster network with piecharts as nodes.

### Description

Plot a bicluster network with piecharts as nodes.

### Usage

    plot_piechart_bicluster_network(
      bic_net,
      bics,
      class_vector,
      colors,
      named = TRUE,
      MARGIN = "column",
      new_layout = TRUE,
      ...
    )

### Arguments

`bic_net` | A `bicluster_net` object.
`bics` | The corresponding list of biclusters from `bic_net`. After calculating communities with `get_louvain_communities` it is necessary to get the subset of biclusters using `select_biclusters_from_bicluster_network`.
`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 `rowname`/`colname` of the bicluster objects should be used instead of the indizes.
`MARGIN` | Must be "row" or "column". Indicates which dimension of the bicluster should be used for coloring.
`new_layout` | If `FALSE`, the plot accepts a network layout as a parameter, other wise a new layout is computed.
`...` | Additional parameters forwarded to `plot.igraph`.

### Value

If `new_layout`, a new network layout is returned that can be used for other plots.

### Examples

    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)

[Package mosbi version 1.0.3 Index]