plotNetwork | R Documentation |
Plot correlation network map
plotNetwork(para, group, valueID = "value", cor.thr = 0.95,
degree.thr = 10, size.factor = 0.5, layout = layout_in_circle,
showPlot = FALSE, graph_format = "gml", ...)
para |
A metaXpara object |
group |
Samples used for plot |
valueID |
The name of the column that used for plot |
cor.thr |
Threshold of correlation |
degree.thr |
Threshold of degree of node |
size.factor |
Node size factor for plot |
layout |
layout for plotting |
showPlot |
Whether or not to print the figure to screen |
graph_format |
The file format for graph data to save. Currently, "edgelist", "pajek", "ncol", "lgl", "graphml", "dimacs", "gml", "dot" and "leda" are supported. |
... |
Additional parameter |
An object of igraph
Bo Wen wenbostar@gmail.com
para <- new("metaXpara")
pfile <- system.file("extdata/MTBLS79.txt",package = "metaX")
sfile <- system.file("extdata/MTBLS79_sampleList.txt",package = "metaX")
rawPeaks(para) <- read.delim(pfile,check.names = FALSE)
sampleListFile(para) <- sfile
para <- reSetPeaksData(para)
para <- missingValueImpute(para)
gg <- plotNetwork(para,group=c("S","C"),degree.thr = 10,cor.thr = 0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.