Changes between Version 9 and Version 10 of rp_xml_ele_histogram


Ignore:
Timestamp:
09/14/11 13:58:09 (4 years ago)
Author:
gah
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rp_xml_ele_histogram

    v9 v10  
    33An '''{{{histogram}}}''' object represents a set of tabulated frequencies. It shows what proportion of cases fall into 
    44specific bins or categories.   
     5 
     6[[rpimage(zoo_histogram.png)]] 
    57 
    68== Example == 
     
    4244 
    4345Each '''{{{<component>}}}''' element describes the values of the histogram. 
    44 There following subelements that can be used to describe the data. 
     46There following sub-elements that can be used to describe the data. 
    4547 
    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. 
    4749{{{ 
    48    <histogram id="xy"> 
     50   <histogram id="namevalues"> 
    4951    ... 
    5052    <component> 
    5153      <xy> 
    52        1 0.99 
    53        2 0.34 
    54        4 0.57  
    55        6 0.22 
    56        7 0.11 
     54        First 0.99 
     55        Second 0.34 
     56        Third 0.57  
     57        Fourth 0.22 
     58        "Another value" 0.11 
    5759      </xy> 
    5860     </component> 
    5961   </histogram> 
    60 }}}  
    61  The x-value is the location of the bar.  It should be an integer.  The y-value is the frequency. 
     62}}} 
    6263 
    63  '''{{{<xhw>}}}''':: The 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.  
    6465{{{ 
    6566   <histogram id="xhw"> 
     
    7677   </histogram> 
    7778}}} 
    78  The x-value is the location of the bar.  It should be an integer.  The y-value is the frequency. The last value is the width of the bar in graph coordinates. 
     79The 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. 
    7980 
    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 are the 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. 
    8182 {{{ 
    8283   <histogram id="vectors"> 
     
    8687      <yvector>0.99 0.34 0.57 0.22 0.11<yvector> 
    8788    </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.99 
    98         Second 0.34 
    99         Third 0.57  
    100         Fourth 0.22 
    101         "Another value" 0.11 
    102       </namevalue> 
    103      </component> 
    10489   </histogram> 
    10590}}}