comparison scatterplot.xml @ 80:c4a3a8999945 draft

Uploaded
author bernhardlutz
date Mon, 20 Jan 2014 14:39:43 -0500
parents
children 4a25bb3a8c69
comparison
equal deleted inserted replaced
79:dc82017052ac 80:c4a3a8999945
1 <tool id="scatterplot_rpy" name="Scatterplot" version="1.1.0">
2 <description>of two numeric columns</description>
3 <expand macro="requirements" />
4 <macros>
5 <import>statistic_tools_macros.xml</import>
6 </macros>
7 <command interpreter="python">scatterplot.py $input $out_file1 $col1 $col2 "$title" "$xlab" "$ylab"</command>
8 <inputs>
9 <param name="input" type="data" format="tabular" label="Dataset" help="Dataset missing? See TIP below"/>
10 <param name="col1" type="data_column" data_ref="input" numerical="True" label="Numerical column for x axis" />
11 <param name="col2" type="data_column" data_ref="input" numerical="True" label="Numerical column for y axis" />
12 <param name="title" size="30" type="text" value="Scatterplot" label="Plot title"/>
13 <param name="xlab" size="30" type="text" value="V1" label="Label for x axis"/>
14 <param name="ylab" size="30" type="text" value="V2" label="Label for y axis"/>
15 </inputs>
16 <outputs>
17 <data format="pdf" name="out_file1" />
18 </outputs>
19
20 <tests>
21 <test>
22 <param name="input" value="scatterplot_in1.tabular" ftype="tabular"/>
23 <param name="col1" value="2"/>
24 <param name="col2" value="3"/>
25 <param name="title" value="Scatterplot"/>
26 <param name="xlab" value="V1"/>
27 <param name="ylab" value="V2"/>
28 <output name="out_file1" file="scatterplot_out1.pdf" />
29 </test>
30 </tests>
31 <help>
32
33 .. class:: infomark
34
35 **TIP:** If your data is not TAB delimited, use *Text Manipulation-&gt;Convert*
36
37 -----
38
39 **Syntax**
40
41 This tool creates a simple scatter plot between two variables containing numeric values of a selected dataset.
42
43 - All invalid, blank and comment lines in the dataset are skipped. The number of skipped lines is displayed in the resulting history item.
44
45 - **Plot title** The scatterplot title
46 - **Label for x axis** and **Label for y axis** The labels for x and y axis of the scatterplot.
47
48 -----
49
50 **Example**
51
52 - Input file::
53
54 1 68 4.1
55 2 71 4.6
56 3 62 3.8
57 4 75 4.4
58 5 58 3.2
59 6 60 3.1
60 7 67 3.8
61 8 68 4.1
62 9 71 4.3
63 10 69 3.7
64
65 - Create a simple scatterplot between the variables in column 2 and column 3 of the above dataset.
66
67 .. image:: ${static_path}/images/scatterplot.png
68
69 </help>
70 </tool>