annotate ggplot_point.xml @ 1:a78aa83f6625 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 97544038b04c02170ab82877db666fa3022e4469
author iuc
date Tue, 29 Aug 2017 09:02:26 -0400
parents 1bff6682e780
children 9a482995958c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
1 <tool id="ggplot2_point" name="Scatterplot w ggplot2" version="@VERSION@">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
2 <macros>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
3 <import>macros.xml</import>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
4 </macros>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
5 <expand macro="requirements"></expand>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
7 cat '$script' &&
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
8 Rscript '$script' &&
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
9 mv output_plot.pdf $output1
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
10 ]]></command>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
11 <configfiles>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
12 <configfile name="script"><![CDATA[
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
13
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
14 @R_INIT@
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
15
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
16 ## Import library
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
17 library("ggplot2")
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
18
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
19 @XY_SCALING@
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
20
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
21 ## Choose theme for plot
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
22 #if $theme == "bw"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
23 gg_theme = theme_bw()
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
24 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
25 gg_theme = NULL
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
26 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
27
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
28 gg_width = $with_output_dim
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
29 gg_height = $height_output_dim
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
30
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
31 input <- read.csv('$input1', sep='\t', header=TRUE)
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
32
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
33 ## renaming columns so ggplot can use them
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
34 names(input)[$xplot] <- "xcol"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
35 names(input)[$yplot] <- "ycol"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
36
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
37 ## choosing whether to plot data as multiple groups on one plot(factoring) OR multiple groups on different plots
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
38 #if $factor.factoring == "Multiple"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
39 gg_facet = facet_wrap( ~ factor)
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
40 gg_factor = NULL
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
41 color_scale = NULL
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
42 #if $points.pointoptions == "Default"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
43 gg_point = geom_point(size=1, alpha=1, gg_factor)
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
44 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
45 gg_point = geom_point(size='$points.size', alpha='$points.alpha', colour='$points.pointcolor')
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
46 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
47
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
48 names(input)[$factor.factorcol] <- "factor"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
49
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
50 #elif $factor.factoring == "Single"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
51 gg_facet = NULL
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
52 gg_factor = aes(colour=factor(factor))
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
53
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
54 #if $points.pointoptions == "default"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
55 gg_point = geom_point(size=1, alpha=1, gg_factor)
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
56 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
57 gg_point = geom_point(size=$points.size, alpha='$points.alpha', gg_factor)
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
58 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
59
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
60 #if $colors == "Default"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
61 color_scale = scale_colour_hue(direction='$factor.colororder')
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
62 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
63 color_scale = scale_color_brewer(palette='$colors', direction='$factor.colororder')
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
64 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
65
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
66 names(input)[$factor.factorcol] <- "factor"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
67 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
68 gg_facet = NULL
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
69 gg_factor = NULL
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
70 color_scale = NULL
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
71
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
72 #if $points.pointoptions == "default"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
73 gg_point = geom_point(size=1, alpha=1, gg_factor)
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
74 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
75 gg_point = geom_point(size=$points.size, alpha='$points.alpha', colour='$points.pointcolor')
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
76 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
77 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
78
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
79 @TRANSFORM@
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
80
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
81 ##axis label custization
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
82 #if $axis_title_customization.axis_customization == "default"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
83 gg_axistitle = theme(axis.title = element_text(color = NULL, size = NULL, face = NULL))
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
84 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
85 gg_axistitle = theme(axis.title = element_text(color = '$color', size = '$size', face = '$face'))
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
86 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
87
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
88
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
89 ##axis text(tick) custization
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
90 #if $axis_text_customization.axis_customization == "default"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
91 gg_axistext = theme(axis.text = element_text(color = NULL, size = NULL, face = NULL))
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
92 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
93 gg_axistext = theme(axis.text = element_text(color = '$color', size = '$size', face = '$face'))
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
94 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
95
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
96 ##plot title custimization
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
97 #if $plot_title_customization.axis_customization == "default"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
98 gg_plottitle = theme(plot.title = element_text(color = NULL, size = NULL, face = NULL))
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
99 #else
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
100 gg_plottitle = theme(plot.title = element_text(color='$color', size='$size', face='$face'))
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
101 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
102
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
103
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
104
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
105 ## grid line customization
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
106 #if $gridlinecust == "default"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
107 gg_gridline = NULL
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
108 #elif $gridlinecust == "hidemajor"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
109 gg_gridline = theme(panel.grid.major = element_blank())
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
110 #elif $gridlinecust == "hideminor"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
111 gg_gridline = theme(panel.grid.minor = element_blank())
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
112 #elif $gridlinecust == "hideboth"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
113 gg_gridline = theme(panel.grid.minor = element_blank(), panel.grid.major = element_blank())
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
114 #end if
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
115
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
116 #this is the actual ggplot command to make the final plot(s)
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
117 ggplot(input, aes(xcol,ycol)) + gg_point + gg_facet+
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
118 gg_theme + gg_scalex + gg_scaley + color_scale + ggtitle('$title') + xlab('$xlab') + ylab('$ylab')+
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
119 gg_axistitle + gg_axistext + gg_plottitle + gg_gridline
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
120
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
121 ggsave(file='output_plot.pdf', width=gg_width, height=gg_height)
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
122 dev.off()
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
123 ]]></configfile>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
124 </configfiles>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
125 <inputs>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
126 <param name="input1" type="data" format="tabular" label="Input in tabular format" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
127 <param name="xplot" type="integer" value="8" label="Column to plot on x-axis" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
128 <param name="yplot" type="integer" value="9" label="Column to plot on y-axis" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
129
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
130 <expand macro="title" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
131 <expand macro="xy_lab" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
132
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
133 <conditional name="points">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
134 <param name="pointoptions" type="select" label="Advanced - data point options">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
135 <option value="default" selected="True">Default</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
136 <option value="defined">User defined point options</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
137 </param>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
138 <when value="default">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
139 <!--Do nothing here -->
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
140 </when>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
141 <when value="defined">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
142 <param name="size" type="float" value="1" label="relative size of points" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
143 <param name="alpha" type="float" value="1" label="Transparency of points (On a scale of 0-1; 0=transparent, 1=default)" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
144 <param name="pointcolor" type="select" label="Color of data points" >
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
145 <option value="black">Black (default)</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
146 <option value="red">Red</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
147 <option value="white">White</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
148 <option value="blue">Blue</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
149 <option value="orange">Orange</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
150 <option value="yellow">Yellow</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
151 <option value="green">Green</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
152 <option value="purple">Purple</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
153 <option value="magenta">Magenta</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
154 <option value="cyan">Cyan</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
155 <option value="grey">Grey</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
156 <option value="gold">Gold</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
157 </param>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
158 </when>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
159 </conditional>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
160 <conditional name="factor">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
161 <param name="factoring" type="select" label="Advanced - plotting multiple groups" >
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
162 <option value="Default" selected="True">No thanks - just plot the data as one group</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
163 <option value="Single">Plot multiple groups of data on one plot</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
164 <option value="Multiple">Plot multiple groups of data on individual plots</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
165 </param>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
166 <when value="Default">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
167 <!--Do nothing here -->
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
168 </when>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
169 <when value="Single">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
170 <param name="factorcol" type="integer" value="1" label="column differentiating the different groups" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
171 <expand macro="colors" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
172 <param name="colororder" type="select" label="Reverse color scheme" >
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
173 <option value="1">Default order of color scheme</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
174 <option value="-1">Reverse the order of my color scheme</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
175 </param>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
176 </when>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
177 <when value="Multiple">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
178 <param name="factorcol" type="integer" value="1" label="column differentiating the different groups" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
179 </when>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
180 </conditional>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
181 <expand macro="transform" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
182
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
183 <expand macro="xy_scaling" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
184
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
185 <param name="theme" type="select" label="Advanced - backgound theme for plot">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
186 <option value="bw">Black and white</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
187 <option value="Default">Default (grey)</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
188 </param>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
189
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
190 <conditional name="axis_title_customization">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
191 <expand macro="axis_customization" label="Advanced - axis title options" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
192 </conditional>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
193 <conditional name="axis_text_customization">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
194 <expand macro="axis_customization" label="Advanced - axis text options" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
195 </conditional>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
196 <conditional name="plot_title_customization">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
197 <expand macro="axis_customization" label="Advanced - Plot title options" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
198 </conditional>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
199 <param name="gridlinecust" type="select" label="Advanced - grid lines">
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
200 <option value="default">Default grid lines</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
201 <option value="hidemajor">Hide major grid lines</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
202 <option value="hideminor">Hide minor grid lines</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
203 <option value="hideboth">Hide major and minor grid lines</option>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
204 </param>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
205 <expand macro="dimensions" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
206 </inputs>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
207 <outputs>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
208 <!-- <data name="output1" format="png" from_work_dir="Rplot.png"/>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
209 ToDo: It would be nice to have different output formats for all tools
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
210 -->
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
211 <data name="output1" format="pdf" from_work_dir="Rplot.pdf"/>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
212 </outputs>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
213 <tests>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
214 <test>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
215 <param name="input1" value="mtcars.txt" ftype="tabular" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
216 <output name="output1" file="ggplot_point_result1.pdf" compare="sim_size" />
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
217 </test>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
218 </tests>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
219 <help><![CDATA[
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
220 This tool will generate a scatterplot representing data from two groups/conditions.
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
221
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
222 The input data should be in tabular format and the user can determine which groups (columns) to plot.
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
223
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
224 Multiple groups can be plotted on the same or multiple plots by providing a column with a group identifier under "Advanced - plotting multiple groups".
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
225
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
226 Feel free to explore the (many) advanced options to customize your plot. Galaxy makes this type optimization easy for the user!
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
227
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
228 The ouput is a pdf file with your scatterplot. The dimensions of this file can be modified under "Advanced - output dimensions"
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
229
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
230 ]]></help>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
231 <expand macro="citations"/>
1bff6682e780 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
232 </tool>