data2graph: Function to create .dot files for graph representation of...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/data2graph.R

Description

From a interaction table or list of data matrices a .dot file is created for visualisation of the interaction/correlation network

Usage

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)

Arguments

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

Value

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

Author(s)

Greg Pau, Elin Axelsson

See Also

Also see Graphviz documantation http://www.graphviz.org/

Examples

1
#see vignette

coRNAi documentation built on Nov. 17, 2017, 11:14 a.m.