Usage
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
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
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