5.10.1. Histogram (clip0243 action)

<< Click to Display Table of Contents >>

Navigation:  5. Detailed description of the Actions > 5.10. R Visualization >

5.10.1. Histogram (clip0243 action)

 

Icon: ANATEL~3_img740  

 

Function: R_Histogram
 
Property window:

 

ANATEL~3_img739

 

Short description:

Create a Histogram chart from an already aggregated table

 

Long Description:

Create a Histogram chart from an already aggregated table. Each input corresponds to the results of and Aggregate action.

 

Parameters:

Orientation: By default, histograms are verticals (categories are on the X axis). Use this option to put the categories on the Y axis

Color for COUNT: select the color for a simple count

Color for other variables: select the color for double values (mean, stdev, etc.)

One window per input pin: if you have multiple charts, you may display them in a single window.

Maximum number of charts per row: if you selected the previous option, how many charts can fit in a row.

Margin between charts: set the parameter to make charts easier to read.

Font Size: set the font size (default is 0.8)

Save Images as PNG: choose whether to save the output as a PNG file or not

PNG Directory: choose where to save the file (by default in the active directory “:/”)

 

Example

Using the Census Database, we want to make histograms of the difference in wage per hour, for each education level, We will first make an aggregate to compute the values to display:

clip0244

 
.. and set the proper parameters to display the histogram. In this case, we simply modified the default value of “Chart Margin” to properly display the labels of the education levels, which can be quite long.

 

This automatically generates the following plots. Note that we chose to keep both plots in the same window, in many cases it is preferable to have one single plot per chart. To do so, simply unckeck the option “One Window per Input Pïn”. You can add up to 20 aggregations in a single “histogram plot”.

ANATEL~3_img744