genlatex                package:deal                R Documentation

_F_r_o_m _a _n_e_t_w_o_r_k _f_a_m_i_l_y, _g_e_n_e_r_a_t_e _L_a_T_e_X _o_u_t_p_u_t

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     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) 

_A_r_g_u_m_e_n_t_s:

     nwl: object of class 'networkfamily' containing a list of objects
          of class 'network'.

  outdir: character string, the directory for storing output.

  prefix: character string, the filename (without extension) of the
          LaTeX file. The filenames of the picfiles begin with the
          given prefix.

  picdir: character string, the directory where pic-files are stored.

  picpre: character string, prefix for pic-files.

    ncol: integer, the number of columns in LaTeX table.

    nrow: integer, the number of rows in LaTeX table.

   width: numeric, the width of each cell in the LaTeX table.

 vadjust: numeric, the vertical adjustment in LaTeX table.

       w: numeric, the width of pictex objects

       h: numeric, the height of pictex objects

bigscale: numeric, the scaling of the best network, which is output in
          'nice.tex'

_V_a_l_u_e:

     Files:

{outdir}{picpre}xx.tex: one pictex file for each network in the network
          family, indexed by xx.

{outdir}{prefix}.tex: LaTeX file with table including all pictex files.

{outdir}{picpre}nice.tex: pictex file with the best network.

_A_u_t_h_o_r(_s):

     Susanne Gammelgaard Bttcher alma@math.aau.dk, 
      Claus Dethlefsen cld@rn.dk.

_S_e_e _A_l_s_o:

     'networkfamily', 'pictex'

_E_x_a_m_p_l_e_s:

     data(rats)
     allrats <- getnetwork(networkfamily(rats,network(rats)))
     allrats <- nwfsort(allrats)

     ## Not run: dir.create("c:/temp")
     ## Not run: genpicfile(allrats,outdir="c:/temp/pic/")
     ## Not run: genlatex(allrats,outdir="c:/temp/pic/",picdir="c:/temp/pic/")

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

     data(ksl)
     ksl.nw  <- network(ksl)
     ksl.prior <- jointprior(ksl.nw,64)
     mybanlist <- matrix(c(5,5,6,6,7,7,9,
                         8,9,8,9,8,9,8),ncol=2)
     banlist(ksl.nw) <- mybanlist                  
     ksl.nw <- getnetwork(learn(ksl.nw,ksl,ksl.prior))
     ksl.search <- autosearch(ksl.nw,ksl,ksl.prior,
                           trace=TRUE)
     ksl.searchlist <- makenw(ksl.search$table,ksl.search$nw)
     ksl.searchlist <- nwfsort(ksl.searchlist)
     ## Not run: genpicfile(ksl.searchlist)
     ## Not run: genlatex(ksl.searchlist)

