annotate xy_plot.xml @ 9:e55bad007b99 draft default tip

Uploaded
author saskia-hiltemann
date Fri, 30 Oct 2015 10:39:41 -0400
parents c3cd8bf8f3b5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
1 <tool id="XY_Plot_1_multiformat" name="Plotting tool" version="1.0.1">
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
2 <description>for multiple series and graph types and multiple output types</description>
0
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
3 <requirements>
8
c3cd8bf8f3b5 Uploaded
saskia-hiltemann
parents: 7
diff changeset
4 <requirement type="package" version="3.2.1">R</requirement>
5
f259b7f33591 Uploaded
saskia-hiltemann
parents: 4
diff changeset
5 <requirement type="package" version="2.11.1">fontconfig</requirement>
1
1e7227087237 Uploaded
saskia-hiltemann
parents: 0
diff changeset
6 </requirements>
0
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
7 <command interpreter="bash">r_wrapper.sh $script_file</command>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
8
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
9 <inputs>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
10 <param name="main" type="text" value="" label="Plot Title"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
11 <param name="xlab" type="text" value="" label="Label for x axis"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
12 <param name="ylab" type="text" value="" label="Label for y axis"/>
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
13 <param name="ftype" type="select" label="File Type">
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
14 <option value="pdf">PDF</option>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
15 <option value="png">PNG</option>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
16 <option value="jpeg">JPEG</option>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
17 <option value="bmp">BMP</option>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
18 <option value="tiff">TIFF</option>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
19 </param>
0
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
20 <repeat name="series" title="Series">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
21 <param name="input" type="data" format="tabular" label="Dataset"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
22 <param name="xcol" type="data_column" data_ref="input" label="Column for x axis"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
23 <param name="ycol" type="data_column" data_ref="input" label="Column for y axis"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
24 <conditional name="series_type">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
25 <param name="type" type="select" label="Series Type">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
26 <option value="line" selected="true">Line</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
27 <option value="points">Points</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
28 </param>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
29 <when value="line">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
30 <param name="lty" type="select" label="Line Type">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
31 <option value="1">Solid</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
32 <option value="2">Dashed</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
33 <option value="3">Dotted</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
34 </param>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
35 <param name="col" type="select" label="Line Color">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
36 <option value="1">Black</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
37 <option value="2">Red</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
38 <option value="3">Green</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
39 <option value="4">Blue</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
40 <option value="5">Cyan</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
41 <option value="6">Magenta</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
42 <option value="7">Yellow</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
43 <option value="8">Gray</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
44 </param>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
45 <param name="lwd" type="float" label="Line Width" value="1.0"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
46 </when>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
47 <when value="points">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
48 <param name="pch" type="select" label="Point Type">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
49 <option value="1">Circle (hollow)</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
50 <option value="2">Triangle (hollow)</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
51 <option value="3">Cross</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
52 <option value="4">Diamond (hollow)</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
53 <option value="15">Square (filled)</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
54 <option value="16">Circle (filled)</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
55 <option value="17">Triangle (filled)</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
56 </param>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
57 <param name="col" type="select" label="Point Color">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
58 <option value="1">Black</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
59 <option value="2">Red</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
60 <option value="3">Green</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
61 <option value="4">Blue</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
62 <option value="5">Cyan</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
63 <option value="6">Magenta</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
64 <option value="7">Yellow</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
65 <option value="8">Gray</option>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
66 </param>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
67 <param name="cex" type="float" label="Point Scale" value="1.0"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
68 </when>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
69 </conditional>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
70 </repeat>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
71 </inputs>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
72
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
73 <configfiles>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
74 <configfile name="script_file">
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
75 ## Setup R error handling to go to stderr
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
76 options( show.error.messages=F,
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
77 error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
78 ## Determine range of all series in the plot
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
79 xrange = c( NULL, NULL )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
80 yrange = c( NULL, NULL )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
81 #for $i, $s in enumerate( $series )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
82 s${i} = read.table( "${s.input.file_name}" )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
83 x${i} = s${i}[,${s.xcol}]
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
84 y${i} = s${i}[,${s.ycol}]
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
85 xrange = range( x${i}, xrange )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
86 yrange = range( y${i}, yrange )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
87 #end for
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
88 ## Open output PDF file
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
89 #if $ftype.value == "pdf"
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
90 pdf("outfile.pdf")
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
91 #else
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
92 "${ftype}"( "outfile.${ftype}" , type="cairo")
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
93 #end if
0
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
94 ## Dummy plot for axis / labels
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
95 plot( NULL, type="n", xlim=xrange, ylim=yrange, main="${main}", xlab="${xlab}", ylab="${ylab}" )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
96 ## Plot each series
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
97 #for $i, $s in enumerate( $series )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
98 #if $s.series_type['type'] == "line"
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
99 lines( x${i}, y${i}, lty=${s.series_type.lty}, lwd=${s.series_type.lwd}, col=${s.series_type.col} )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
100 #elif $s.series_type.type == "points"
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
101 points( x${i}, y${i}, pch=${s.series_type.pch}, cex=${s.series_type.cex}, col=${s.series_type.col} )
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
102 #end if
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
103 #end for
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
104 ## Close the PDF file
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
105 devname = dev.off()
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
106 </configfile>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
107 </configfiles>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
108
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
109 <outputs>
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
110 <data format="pdf" name="out_file1" from_work_dir="outfile.pdf" >
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
111 <filter>(ftype == 'pdf') </filter>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
112 </data>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
113 <data format="png" name="out_file2" from_work_dir="outfile.png">
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
114 <filter>(ftype == 'png') </filter>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
115 </data>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
116 <data format="jpg" name="out_file3" from_work_dir="outfile.jpeg">
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
117 <filter>(ftype == 'jpeg') </filter>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
118 </data>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
119 <data format="bmp" name="out_file4" from_work_dir="outfile.bmp">
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
120 <filter>(ftype == 'bmp') </filter>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
121 </data>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
122 <data format="tiff" name="out_file5" from_work_dir="outfile.tiff">
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
123 <filter>(ftype == 'tiff') </filter>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
124 </data>
0
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
125 </outputs>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
126
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
127 <tests>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
128 <test>
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
129 <param name="main" value="Example XY Plot PDF"/>
0
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
130 <param name="xlab" value="Column 1"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
131 <param name="ylab" value="Column 2"/>
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
132 <param name="ftype" value="pdf"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
133 <param name="input" value="2.tabular" ftype="tabular"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
134 <param name="xcol" value="1"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
135 <param name="ycol" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
136 <param name="type" value="line"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
137 <param name="lty" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
138 <param name="col" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
139 <param name="lwd" value="1.0"/>
9
e55bad007b99 Uploaded
saskia-hiltemann
parents: 8
diff changeset
140 <output name="out_file1" file="XY_Plot_1_multi_out.pdf" format="pdf" />
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
141 </test>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
142 <test>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
143 <param name="main" value="Example XY Plot PNG"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
144 <param name="xlab" value="Column 1"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
145 <param name="ylab" value="Column 2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
146 <param name="ftype" value="png"/>
0
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
147 <param name="input" value="2.tabular" ftype="tabular"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
148 <param name="xcol" value="1"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
149 <param name="ycol" value="2"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
150 <param name="type" value="line"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
151 <param name="lty" value="2"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
152 <param name="col" value="2"/>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
153 <param name="lwd" value="1.0"/>
9
e55bad007b99 Uploaded
saskia-hiltemann
parents: 8
diff changeset
154 <output name="out_file2" md5="c2762c725f80fe4419e35768cac5d11b" />
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
155 </test>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
156 <test>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
157 <param name="main" value="Example XY Plot JPEG"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
158 <param name="xlab" value="Column 1"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
159 <param name="ylab" value="Column 2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
160 <param name="ftype" value="jpeg"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
161 <param name="input" value="2.tabular" ftype="tabular"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
162 <param name="xcol" value="1"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
163 <param name="ycol" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
164 <param name="type" value="line"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
165 <param name="lty" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
166 <param name="col" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
167 <param name="lwd" value="1.0"/>
9
e55bad007b99 Uploaded
saskia-hiltemann
parents: 8
diff changeset
168 <output name="out_file3" md5="5c89f4e87bb5f2a809877b471f9c2d69" />
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
169 </test>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
170 <test>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
171 <param name="main" value="Example XY Plot BMP"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
172 <param name="xlab" value="Column 1"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
173 <param name="ylab" value="Column 2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
174 <param name="ftype" value="bmp"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
175 <param name="input" value="2.tabular" ftype="tabular"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
176 <param name="xcol" value="1"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
177 <param name="ycol" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
178 <param name="type" value="line"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
179 <param name="lty" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
180 <param name="col" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
181 <param name="lwd" value="1.0"/>
9
e55bad007b99 Uploaded
saskia-hiltemann
parents: 8
diff changeset
182 <output name="out_file4" md5="74ea4b29bd7de44c1b6377c6c26671e7"/>
7
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
183 </test>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
184 <test>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
185 <param name="main" value="Example XY Plot TIFF"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
186 <param name="xlab" value="Column 1"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
187 <param name="ylab" value="Column 2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
188 <param name="ftype" value="tiff"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
189 <param name="input" value="2.tabular" ftype="tabular"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
190 <param name="xcol" value="1"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
191 <param name="ycol" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
192 <param name="type" value="line"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
193 <param name="lty" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
194 <param name="col" value="2"/>
afb09b6aee95 Uploaded
saskia-hiltemann
parents: 5
diff changeset
195 <param name="lwd" value="1.0"/>
9
e55bad007b99 Uploaded
saskia-hiltemann
parents: 8
diff changeset
196 <output name="out_file5" md5="7ebf7d201ad9cdf0fc6995639749ae7d"/>
0
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
197 </test>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
198 </tests>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
199 <help>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
200 .. class:: infomark
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
201
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
202 This tool allows you to plot values contained in columns of a dataset against each other and also allows you to have different series corresponding to the same or different datasets in one plot.
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
203
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
204 -----
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
205
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
206 .. class:: warningmark
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
207
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
208 This tool throws an error if the columns selected for plotting are absent or are not numeric and also if the lengths of these columns differ.
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
209
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
210 -----
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
211
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
212 **Example**
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
213
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
214 Input file::
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
215
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
216 1 68 4.1
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
217 2 71 4.6
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
218 3 62 3.8
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
219 4 75 4.4
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
220 5 58 3.2
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
221 6 60 3.1
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
222 7 67 3.8
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
223 8 68 4.1
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
224 9 71 4.3
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
225 10 69 3.7
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
226
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
227 Create a two series XY plot on the above data:
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
228
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
229 - Series 1: Red Dashed-Line plot between columns 1 and 2
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
230 - Series 2: Blue Circular-Point plot between columns 3 and 2
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
231
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
232 .. image:: xy_example.jpg
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
233 </help>
8cdada007b82 Uploaded
saskia-hiltemann
parents:
diff changeset
234 </tool>