save3dModule: Save a 3D plot of the network

Description Usage Arguments Author(s) See Also Examples

View source: R/Plots.R

Description

The function saves a 3D plot of a network to file, therefore it requires the plot to be open. A screenshot of the 3D plot can be saved in "pdf" format. Background of the device is changed to white for plotting. The screenshot can take several seconds for large plots.

Usage

1

Arguments

file

File to save to.

Author(s)

Daniela Beisser

See Also

plot3dModule, plotModule

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(DLBCL)
data(dataLym)
data(interactome)
interactome <- subNetwork(dataLym$label, interactome)
fchange <- dataLym$diff
names(fchange) <- dataLym$label
subnet <- largestComp(subNetwork(nodes(interactome)[1:100], interactome))
diff <- fchange[nodes(subnet)]

## Not run: library(rgl);
plot3dModule(network=subnet, diff.or.score=diff);
save3dModule(file="test")
## End(Not run)


BioNet documentation built on May 20, 2017, 10:57 p.m.
Search within the BioNet package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.