\documentclass[article,nojss]{jss} \DeclareGraphicsExtensions{.pdf,.eps} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Add-on packages and fonts \usepackage{amsmath} \usepackage{xspace} \usepackage{verbatim} \usepackage[english]{babel} %\usepackage{mathptmx} %\usepackage{helvet} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \newcommand{\di}{\textbf{\textsf{diagram}}\xspace} \title{\proglang{R} Package \pkg{ecolMod}: figures and examples from Soetaert and Herman (2009)} \Plaintitle{R Package ecolMod: figures and examples from Soetaert and Herman (2009)} \Keywords{ecological Modelling, graphics, figures, examples, R} \Plainkeywords{ecological Modelling, graphics, figures, examples, R} \author{Karline Soetaert\\ Royal Netherlands Institute of Sea Research (NIOZ)\\ Yerseke, The Netherlands } \Plainauthor{Karline Soetaert} \Abstract{This document contains some examples of the demos from package \pkg{ecolMod}. This package has, in its demo's all the figures of the book: Soetaert K. and P.M.J. Herman (2009). A Practical Guide to Ecological Modelling. Using R as a Simulation Platform. Springer, 372 pp. } %% The address of (at least) one author should be given %% in the following format: \Address{ Karline Soetaert\\ Royal Netherlands Institute of Sea Research (NIOZ)\\ 4401 NT Yerseke, Netherlands E-mail: \email{karline.soetaert@nioz.nl}\\ URL: \url{http://www.nioz.nl}\\ } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% R/Sweave specific LaTeX commands. %% need no \usepackage{Sweave} %\VignetteIndexEntry{ecolMod: figures and examples from Soetaert and Herman (2009)} %\VignetteKeywords{ecological Modelling, graphics, figures, examples} %\VignettePackage{ecolMod} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Begin of the document \begin{document} \SweaveOpts{engine = R, eps = FALSE} \SweaveOpts{keep.source = TRUE} <>= library("ecolMod") options(prompt = "> ") options(width = 90) @ \maketitle This vignette is a Sweave \citep{Leisch02} application of parts of the demos from package \pkg{ecolMod} \citep{ecolMod}, accompanying the book: Soetaert K. and P.M.J. Herman (2009). A Practical Guide to Ecological Modelling. Using R as a Simulation Platform. Springer, 372 pp. All figures from this book (>100) were created in \pkg{R}. While making these figures, I was not concerned with \emph{how} they are programmed, but rather with the result. Therefore, it is likely that there exist better and more elegant ways to create them. Some figures make use of packages \begin{itemize} \item shape \citep{shape}, to draw graphical shapes. \item diagram \citep{diagram}, to draw simple graphs, networks, diagrams \end{itemize} These two packages were written in support of the book. For each chapter of the book, the figures can be displayed by typing \begin{verbatim} demo(chap1) demo(chap2) ... demo(chap11) \end{verbatim} Also, the examples in the book can be found in the \url{examples} subdirectory of the package. In this vignette, one (or two) figures for each chapter are created. \clearpage \section{Chapter 1. Introduction} This figure represents the modelling steps and ingredients. The figure makes use of package \pkg{diagram}. After opening a plot, and positioning of the elements (\code{elpos}), first the arrows connecting them are drawn (\code{segmentarrow, straightarrow}) and the texts written in rounded or diamond-shaped boxes \code{textround, textdiamond}, or as plain text. <