~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/plots/density_plot.xml

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2008-04-20 21:30:00 UTC
  • mfrom: (1.2.2 upstream) (3.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080420213000-fs4i8efmfc793bnn
new upstream release
closes: #475175
closes: #463348
closes: #475982

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE rkplugin>
 
2
<document>
 
3
        <code file="density_plot.php" />
 
4
        <help file="density_plot.rkh" />
 
5
        
 
6
        <logic>
 
7
                <connect client="plotoptions.xvar" governor="x.available"/>
 
8
                <set id="plotoptions.allow_log" to="false"/>
 
9
                <set id="plotoptions.allow_type" to="false"/>
 
10
 
 
11
                <!-- only gaussian kernel works for highest density regions plot -->
 
12
                <convert id="is_normal_density_plot" mode="equals" sources="plot_type.string" standard="density_plot"/>
 
13
                <connect client="kern.rectangular.enabled" governor="is_normal_density_plot"/>
 
14
                <connect client="kern.triangular.enabled" governor="is_normal_density_plot"/>
 
15
                <connect client="kern.epanechnikov.enabled" governor="is_normal_density_plot"/>
 
16
                <connect client="kern.biweight.enabled" governor="is_normal_density_plot"/>
 
17
                <connect client="kern.cosine.enabled" governor="is_normal_density_plot"/>
 
18
                <connect client="kern.optcosine.enabled" governor="is_normal_density_plot"/>
 
19
 
 
20
                <convert id="gaussian_kernel" mode="equals" sources="kern.string" standard="gaussian"/>
 
21
                <connect client="bw.enabled" governor="gaussian_kernel"/>
 
22
 
 
23
                <connect client="rug_ticksize.enabled" governor="rug.state"/>
 
24
                <connect client="rug_lwd.enabled" governor="rug.state"/>
 
25
                <connect client="rug_side.enabled" governor="rug.state"/>
 
26
                <connect client="rug_col.enabled" governor="rug.state"/>
 
27
        </logic>
 
28
        <dialog label="Density Plot" >
 
29
                <tabbook>
 
30
                        <tab label="Variable(s)" id="tab_vars">
 
31
                                <row>
 
32
                                        <varselector id="vars" />
 
33
                                        <column>
 
34
                                                <varslot multi="false" type="numeric" id="x" source="vars" label="variable(s):" required="true" />
 
35
                                                <stretch/>
 
36
                                                <preview id="preview"/>
 
37
                                        </column>
 
38
                                </row>
 
39
                        </tab>
 
40
                        <tab label="Options" id="tab_options">
 
41
                                <row>
 
42
                                        <column>
 
43
                                                <radio id="plot_type" label="type of plot">
 
44
                                                        <option value="density_plot" checked="true" label="plot normal density"/>
 
45
                                                        <option value="hdr_plot" label="plot highest density regions"/>
 
46
                                                </radio>
 
47
                                                <frame id="frame_density_opts" label="density estimation options">
 
48
                                                        <row>
 
49
                                                                <column>
 
50
                                                                        <dropdown id="kern" label="Smoothing Kernel">
 
51
                                                                                <option value="gaussian" label="gaussian (default)"/>
 
52
                                                                                <option id="rectangular" value="rectangular" label="rectangular"/>
 
53
                                                                                <option id="triangular" value="triangular" label="triangular"/>
 
54
                                                                                <option id="epanechnikov" value="epanechnikov" label="epanechnikov"/>
 
55
                                                                                <option id="biweight" value="biweight" label="biweight"/>
 
56
                                                                                <option id="cosine" value="cosine" label="cosine"/>
 
57
                                                                                <option id="optcosine" value="optcosine" label="optcosine"/>
 
58
                                                                        </dropdown>
 
59
                                                                        <dropdown id="bw" label="Bandwidth">
 
60
                                                                                <option value="nrd0" label="nrd0"/>
 
61
                                                                                <option value="nrd" label="nrd"/>
 
62
                                                                                <option value="ucv" label="ucv"/>
 
63
                                                                                <option value="bcv" label="bcv"/>
 
64
                                                                                <option value="SJ-ste" label="SJ-ste"/>
 
65
                                                                                <option value="SJ-dpi" label="SJ-dpi"/>
 
66
                                                                        </dropdown>
 
67
                                                                        <spinbox type="real" min="0.00001" id="adjust" label="Adjust Bandwidth" initial="1"/>
 
68
                                                                        <stretch/>
 
69
                                                                </column>
 
70
                                                                <column>
 
71
                                                                        <checkbox id="narm" label="Remove Missing Values" value="na.rm=TRUE" value_unchecked="na.rm=FALSE" checked="true"/>
 
72
                                                                        <spinbox id="n" initial="512" label="Resolution" />
 
73
                                                                        <stretch/>
 
74
                                                                </column>
 
75
                                                        </row>
 
76
                                                </frame>
 
77
                                        </column>
 
78
                                        <column>
 
79
                                                <frame label="Rug" id="frame_rug">
 
80
                                                        <checkbox value_unchecked="0" value="1" checked="false" id="rug" label="Add rug" />
 
81
                                                        <spinbox min="0" initial="0.03" id="rug_ticksize" label="Ticksize" />
 
82
                                                        <spinbox min="0" initial="0.5" id="rug_lwd" label="Line width of ticks" default_precision="0"/>
 
83
                                                        <radio label="Side of Rug" id="rug_side">
 
84
                                                                <option value="side = 1" label="Rug on Bottom" />
 
85
                                                                <option value="side = 3" label="Rug on Top" />
 
86
                                                        </radio>
 
87
                                                        <embed id="rug_col" component="rkward::color_chooser" label="Color"/>
 
88
                                                        <stretch/>
 
89
                                                </frame>
 
90
                                        </column>
 
91
                                </row>
 
92
                        </tab>
 
93
                        <tab label="Axis/Title" id="tab_plotoptions">
 
94
                                <row>
 
95
                                        <embed id="plotoptions" component="rkward::plot_options" as_button="false" label="Plot Options" />
 
96
                                        <stretch/>
 
97
                                </row>
 
98
                        </tab>
 
99
                </tabbook>
 
100
        </dialog>
 
101
</document>