Last data update: 2014.03.03

R: Plot module assignments.
plot_modulesR Documentation

Plot module assignments.

Description

Plot as network graphical view of the output from mirsynergy V. NB: small network only.

Usage

plot_modules(V, W, H, legend.pos = "topright", ...)

Arguments

V

Outputs from mirsynergy

W

An N by M edge weight matrix containing interaction strength between N mRNA and M miRNA.

H

An N by N edge weight matrix containing the binary interaction among the N mRNA (genes).

legend.pos

Specify legend position

...

Other parameters passed to plot

Details

Each node will be coloured by the modules they belong to. If a node belongs to multiple modules, it will be coloured differently based on the exact combination of the module indexes. The legend displays the corresponding colours and module assignments.

Note

Only for small network. For large network please use tabular_module to create a pairwise table as input to Cytoscape.

Author(s)

Yue Li

Examples

load(system.file("extdata/toy_modules.RData", package="Mirsynergy"))

plot_modules(V,W,H)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Mirsynergy)
Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Loading required package: ggplot2
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/Mirsynergy/plot_modules.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot_modules
> ### Title: Plot module assignments.
> ### Aliases: plot_modules
> 
> ### ** Examples
> 
> load(system.file("extdata/toy_modules.RData", package="Mirsynergy"))
> 
> plot_modules(V,W,H)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>