Description Usage Arguments Value Author(s) See Also Examples
From a interaction table or list of data matrices a .dot file is created for visualisation of the interaction/correlation network
1 | data2graph(indata, sizethres=0, thres, thresBy = "P.Value", cols = c("blue", "white", "red"), gamma.col = 1, scaleFactor = 1, nodecolor = "white", writedot = FALSE, filename, width=0.1, penwidth=1, shape='circle', fixedsize=TRUE,fontsize=10)
|
indata |
|
sizethres |
numerical, lower treshold on the absolute effect size for edges |
thres |
threshold that should be used for interactions/correlations to be included in graph |
thresBy |
what data should the the threshold by used at. By default the p value from the moderated t test is used but one could also use e.g. the ordinary t or the size |
cols |
colors to be used in the plot, should be a character vector with the colors for low, neutral and hig values |
gamma.col |
Factor used to scale the colors |
scaleFactor |
Scale factor to adjust the distances beteen nodes in the graph |
nodecolor |
character or character vector, which color(s) should the nodes have. Should either be of lenth 1 (all nodes same color) or same length as the number of nodes. |
writedot |
logical, should a .dot file be created. |
filename |
charcter string with name of .dot file |
width |
width of the nodes |
penwidth |
width of the lines in the plot |
shape |
shape of the nodes in the plot |
fixedsize |
should all nodes have the same size |
fontsize |
size of the font in the plot |
a .dot file is written if writefile argument is TRUE
ninf |
Dataframe with information about the nodes in the network |
einfo |
Dataframe with information about the edges in the network |
Greg Pau, Elin Axelsson
Also see Graphviz documantation http://www.graphviz.org/
1 | #see vignette
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.