/
8_quick_guide_graphics_withoutXpose_body.tex
executable file
·109 lines (91 loc) · 4.17 KB
/
8_quick_guide_graphics_withoutXpose_body.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
\begin{center}
{\colorbox{grey2}{
\begin{minipage}[t]{0.9\textwidth}
\subsubsection*{Scope}
This Pirana Quick Guide explains how to use Pirana to generate and
modify diagnostic graphs using the integrated R scripts library.
\end{minipage}
}
}
\end{center}
\vspace{10pt}
Pirana has an integrated library of R scripts which can be used to
generate diagnostic plots based on model output files. The library of
R scripts can also be easily edited or extended with new scripts.
\subsubsection*{Creating diagnostic plots}
\begin{itemize}
\item Select the model for which you want to create plots.
\item In the right panel under Scripts, select the desired script.
\item Via the context menu, select run script.
clicking the right mouse button, and then selecting 'Run script',
and subsequently selecting the plot you want to create (Figure \ref{fig:Fig1}).
\item The plot will be created and openened automatically (Figure \ref{fig:Fig2}).
\end{itemize}
\begin{figure}[hctb] \centering
\includegraphics[scale=.3]{images/graphs_1.jpg}
\caption{Running a script on a model run\label{fig:Fig1}}
\end{figure}
\begin{figure}[h] \centering
\includegraphics[scale=.45]{images/graphs_3.jpg}
\caption{Diagnostic plot created\label{fig:Fig2}}
\end{figure}
\subsubsection*{Troubleshooting problems with plot creation}
\begin{itemize}
\item If an error occurs, the R output will be displayed, which can be
used to diagnose the error (Figure \ref{fig:Fig3}).
\item Most frequently this is due to a variable missing in the output table
files (e.g. column IPRED not available in output table).
\item The expected input variables for each script are depicted at the bottom of
the right panel.
\end{itemize}
\begin{figure}[hctb] \centering
\includegraphics[scale=.45]{images/graphs_2.jpg}
\caption{Output of the script\label{fig:Fig3}}
\end{figure}
\subsubsection*{Customizing diagnostic plots}
\begin{itemize}
\item Instead of running the script through Run Script (above), the
script may also be outputted to the R GUI ("Output script to R GUI")
(Figure \ref{fig:Fig4}). Now, you can easily tweak the plot, and save it in the
format you like.
\item Afrter sending the script to R GUI, it will be opened there,
where it may be further modified. Next, the script can be executed
and the plot will be created within the R GUI (Figure 5).
\end{itemize}
\begin{figure}[h] \centering
\includegraphics[scale=.3]{images/graphs_4.jpg}
\caption{Output of a script to the R GUI for further customization\label{fig:Fig4}}
\end{figure}
\subsubsection*{Editing and creating scripts}
\begin{itemize}
\item When one whishes to permanently make changes to the scripts
library, this can be done using the option "Edit script" in the right panel context menu.
(Figure \ref{fig:Fig6}).
\item Any changes made to the script will be saved permanently. You
can choose to make changes in the script that are originally
supplied with Pirana, or have them in your own user library.
\item Script files are located either in the user folder
(e.g. C:$\backslash$Documents and
Settings$\backslash$Username
$\backslash$.pirana$\backslash$scripts), or in the
main Pirana folder (e.g. C:$\backslash$Program
Files$\backslash$Pirana). The organization of scripts in sub-menus
is according to the folder structure in these scripts folders
(Figure \ref{fig:Fig7}), and can be adjusted accordingly.
\item Note that when you install a new version of Pirana over the old
one, any R script you have in the Pirana folder will be overwritten
with the one supplied by the new version of Pirana (if you haven't
given the R-script another name).
\item Through the menu 'Scripts' $\rightarrow$ 'New scripts', it is
also possible to define new scripts. Please note that at current,
you will have to restart Pirana for the script to show up in the
interface.
\end{itemize}
\begin{figure}[h] \centering
\includegraphics[scale=.3]{images/graphs_6.jpg}
\caption{Editing templates for scripts\label{fig:Fig6}}
\end{figure}
\begin{figure}[h] \centering
\includegraphics[scale=.5]{images/graphs_7.jpg}
\caption{Script files present in the scripts sub-folder of Pirana\label{fig:Fig7}}
\end{figure}