Learn R Programming

deal (version 1.1-2)

genlatex: From a networkfamily, generate LaTeX output

Description

The networks in a networkfamily is arranged as pictex-graphs in a LaTeX-table.

Usage

genlatex(nwl,outdir="pic/",prefix="scoretable",picdir="",picpre="pic",
         ncol=5,nrow=7,width=12/ncol,vadjust=-1.8)
genpicfile (nwl,outdir="pic/",prefix="pic",w=1.6,h=1.6,bigscale=3)

Arguments

nwl
Object of class networkfamily containing a list of objects of class network.
outdir
Directory for storing output.
prefix
The filename (without extension) of the LaTeX file. The filenames of the picfiles begin with the given prefix.
picdir
Directory where pic-files are stored.
picpre
Prefix for pic-files.
ncol
Number of columns in LaTeX table.
nrow
Number of rows in LaTeX table.
width
Width of each cell in the LaTeX table.
vadjust
Vertical adjustment in LaTeX table.
w
Width of pictex objects
h
Height of pictex objects
bigscale
Scaling of the best network, which is output in 'nice.tex'

Value

  • Files: {outdir}{picpre}xx.tex : one pictex file for each network in the networkfamily, indexed by xx. {outdir}{prefix}.tex : LaTeX file with table including all pictex files. {outdir}nice.tex : pictex file with the best network.

See Also

networkfamily

Examples

Run this code
data(rats)
allrats <- networkfamily(rats,network(rats))$nw
allrats <- nwfsort(allrats)

## delete # to run the following three commands
#dir.create("c:/temp")
#genpicfile(allrats,outdir="c:/temp/pic/")
#genlatex(allrats,outdir="c:/temp/pic/",picdir="c:/temp/pic/")

## LATEX FILE:
#\documentclass{article}
#\usepackage{array,pictex}
#\begin{document}
#\input{scoretable}
#\end{document}

Run the code above in your browser using DataLab