Description Usage Arguments Value Examples
View source: R/visualizations.R
Subpathway plotting as a graph.
1 2 | subpathwayToGraph( DEsubs.out, submethod, subname, colors, size, export,
width, height, outfile, verbose )
|
DEsubs.out |
Return value from |
submethod |
Subpathway extraction type selection (get all availiable options from subpathwayTypes) |
subname |
Subpathway name as contained in |
colors |
A custom color mode which overrides the default settings. |
size |
A vector storing width and height of the barplot visualization. |
export |
A set of options for exporting subpathway data. Possible options are 'plot', 'pdf', 'edgelist', 'json', 'gml', 'ncol', 'lgl', 'graphml','dot'. |
width |
The width of the printable area (pdf) |
height |
The height of the printable area (pdf) |
outfile |
Output file name of the visualization. If multiple export types have been selected, the outfile should have an extension '.*' |
verbose |
TRUE to display informative messages, FALSE to hide. |
No value is returned.
1 2 3 4 5 6 7 8 9 10 11 | load(system.file('extdata', 'data.RData', package='DEsubs'))
outfile <- tempfile(fileext='.pdf')
res <- subpathwayToGraph(
DEsubs.out=DEsubs.out,
submethod='community.walktrap',
subname=paste0('sub', 6),
size=c(10,10),
export='pdf',
outfile=outfile )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.