Changes between Version 9 and Version 10 of rp_xml_ele_histogram
- Timestamp:
- Sep 14, 2011 10:58:09 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
rp_xml_ele_histogram
v9 v10 3 3 An '''{{{histogram}}}''' object represents a set of tabulated frequencies. It shows what proportion of cases fall into 4 4 specific bins or categories. 5 6 [[rpimage(zoo_histogram.png)]] 5 7 6 8 == Example == … … 42 44 43 45 Each '''{{{<component>}}}''' element describes the values of the histogram. 44 There following sub elements that can be used to describe the data.46 There following sub-elements that can be used to describe the data. 45 47 46 '''{{{<xy>}}}''':: The data is in x/y pairs of values. This is similar to how the '''{{{curve}}}''' object represents its data values. The x-values are displayed as numbers.48 '''{{{<xy>}}}''':: The data is in name/value pairs. The name is a string that will label the bar. The value is the frequency. The order of the bars is the order of the pairs. 47 49 {{{ 48 <histogram id=" xy">50 <histogram id="namevalues"> 49 51 ... 50 52 <component> 51 53 <xy> 52 10.9953 20.3454 40.5755 60.2256 70.1154 First 0.99 55 Second 0.34 56 Third 0.57 57 Fourth 0.22 58 "Another value" 0.11 57 59 </xy> 58 60 </component> 59 61 </histogram> 60 }}} 61 The x-value is the location of the bar. It should be an integer. The y-value is the frequency. 62 }}} 62 63 63 '''{{{<xhw>}}}''':: Th e data is in x/y pairs of values one per line, but may also include a third value that is the width of the bar. The should be used when you want non-uniform bars. The x-values are displayed as numbers.64 '''{{{<xhw>}}}''':: This is exactly like the '''{{{<xy>}}}''' element except that it includes a third value per line that is the width of the bar. The should be used when you want non-uniform bars. 64 65 {{{ 65 66 <histogram id="xhw"> … … 76 77 </histogram> 77 78 }}} 78 The x-value is the location of the bar. It should be an integer. The y-value isthe frequency. The last value is the width of the bar in graph coordinates.79 The x-value is a string that will label the bar. The y-value is a number representing the frequency. The last value is the width of the bar in graph coordinates. 79 80 80 '''{{{<xvector>}}}''' and '''{{{<yvector>}}}''':: These two elements can be used if you want to represent the data as separate vectors. The x-vector values are the locations of the bars. They should be integers. The y-vector values arethe frequencies. The widths of the bars are uniform.81 '''{{{<xvector>}}}''' and '''{{{<yvector>}}}''':: These two elements can be used if you want to represent the data as separate vectors. The x-vector values are the strings representing the labels of the bars. The y-vector values are numbers representing the frequencies. The widths of the bars are uniform. 81 82 {{{ 82 83 <histogram id="vectors"> … … 86 87 <yvector>0.99 0.34 0.57 0.22 0.11<yvector> 87 88 </component> 88 </histogram>89 }}}90 91 '''{{{<namevalue>}}}''':: The data is in name/value pairs. The name is a string that will label the bar. The value is the frequency. The order of the bars is the order of the pairs.92 {{{93 <histogram id="namevalues">94 ...95 <component>96 <namevalue>97 First 0.9998 Second 0.3499 Third 0.57100 Fourth 0.22101 "Another value" 0.11102 </namevalue>103 </component>104 89 </histogram> 105 90 }}}