Difference between revisions of "Graphing roles"

Line 1: Line 1:
 
[[Category:Analytica User Guide]]
 
[[Category:Analytica User Guide]]
 +
[[Category: Graphs]]
 +
 
<breadcrumbs>Analytica User Guide > Formatting Numbers, Tables, and Graphs > {{PAGENAME}}</breadcrumbs>
 
<breadcrumbs>Analytica User Guide > Formatting Numbers, Tables, and Graphs > {{PAGENAME}}</breadcrumbs>
  
Line 7: Line 9:
 
This example shows projections of U.S. energy consumption made by two organizations, the U.S. Energy Information Administration (actual) and the Alliance for Renewable Energy (fictional). The horizontal axis is set to '''Energy source''', the key color is set to '''Organization''', leaving the '''Year '''as a slicer, from which we have selected 2025.
 
This example shows projections of U.S. energy consumption made by two organizations, the U.S. Energy Information Administration (actual) and the Alliance for Renewable Energy (fictional). The horizontal axis is set to '''Energy source''', the key color is set to '''Organization''', leaving the '''Year '''as a slicer, from which we have selected 2025.
  
[[File:Chapter7_9.png]]
+
:[[File:Chapter7_9.png]]
  
 
Here we have pivoted the graph by changing graphing roles. We assign '''Year '''to the horizontal axis, '''Energy source '''to the color key, and '''Organization '''to the symbol key, leaving no need for a slicer.
 
Here we have pivoted the graph by changing graphing roles. We assign '''Year '''to the horizontal axis, '''Energy source '''to the color key, and '''Organization '''to the symbol key, leaving no need for a slicer.
  
[[File:Chapter7_10.png]]
+
:[[File:Chapter7_10.png]]
  
 
In this version, the color key and symbol key both show the '''Organization '''index, which is therefore differentiated by both color and symbol shape. The index '''Energy source '''is not assigned a visible graphing role, so shows up as a slicer. It is set to '''Totals''', to show total over energy sources for each organization.
 
In this version, the color key and symbol key both show the '''Organization '''index, which is therefore differentiated by both color and symbol shape. The index '''Energy source '''is not assigned a visible graphing role, so shows up as a slicer. It is set to '''Totals''', to show total over energy sources for each organization.
  
[[File:Chapter7_11.png]]
+
:[[File:Chapter7_11.png]]
  
 
These are the graphing roles available.
 
These are the graphing roles available.
Line 25: Line 27:
 
'''Key''': Defines the color of lines or symbols. By default, it appears for the second index, if the array has more than one dimension. The key appears below the graph — unless reset in the '''Style '''tab of the Graph setup dialog. In the table view, it becomes the row headers.
 
'''Key''': Defines the color of lines or symbols. By default, it appears for the second index, if the array has more than one dimension. The key appears below the graph — unless reset in the '''Style '''tab of the Graph setup dialog. In the table view, it becomes the row headers.
  
'''Color key and symbol key''': If you check ''Use separate color/symbol keys ''in the Graph setup dialog (available for the two line styles that show symbols), it expands the key into two graphing roles, '''''color key '''''and '''''symbol key'''''. Each has its own role menu, letting you assign a second and third index.
+
'''Color key and symbol key''': If you check ''Use separate color/symbol keys ''in the [[Graph setup dialog]] (available for the two line styles that show symbols), it expands the key into two graphing roles, '''''color key '''''and '''''symbol key'''''. Each has its own role menu, letting you assign a second and third index.
  
 
'''Symbol size key''': If you further check ''Allow variable symbol size'', it adds symbol size as a fourth graphing role. You can specify the range of sizes from smallest to largest in typographic points, corresponding to smallest and largest values of the corresponding index. (It only works for a numerical index.) Symbol key and symbol size key do not appear in the table view.
 
'''Symbol size key''': If you further check ''Allow variable symbol size'', it adds symbol size as a fourth graphing role. You can specify the range of sizes from smallest to largest in typographic points, corresponding to smallest and largest values of the corresponding index. (It only works for a numerical index.) Symbol key and symbol size key do not appear in the table view.
Line 32: Line 34:
  
 
==See Also==
 
==See Also==
 +
* [[Graph settings]]
 +
* [[Graph setup dialog]]
 +
 +
 
<footer>Multiple formats in one table / {{PAGENAME}} / Graph setup dialog</footer>
 
<footer>Multiple formats in one table / {{PAGENAME}} / Graph setup dialog</footer>

Revision as of 00:22, 17 February 2016



A graphing role is an aspect of a graph or chart used to display a dimension (or index). Graphing roles include the horizontal axis, vertical axis, key color, symbol shape and size. A simple key uses only colors, but you can expand it to include a symbol shape and size for each data point. For an array with too many dimensions to assign them all graphing roles, you can assign the extra indexes as slicer dimensions, from which you can select any value to display. For each available role, a graph shows a menu from which you can select the index you want to assign to that role. The flexibility of being able to directly assign graphing dimensions (such as indexes) to roles on the graph helps you find the best way to communicate multidimensional results. Each graphing roles can display a continuous numerical scale or a discrete numerical or categorical scale — except for symbol size, which must be numerical.

This example shows projections of U.S. energy consumption made by two organizations, the U.S. Energy Information Administration (actual) and the Alliance for Renewable Energy (fictional). The horizontal axis is set to Energy source, the key color is set to Organization, leaving the Year as a slicer, from which we have selected 2025.

Chapter7 9.png

Here we have pivoted the graph by changing graphing roles. We assign Year to the horizontal axis, Energy source to the color key, and Organization to the symbol key, leaving no need for a slicer.

Chapter7 10.png

In this version, the color key and symbol key both show the Organization index, which is therefore differentiated by both color and symbol shape. The index Energy source is not assigned a visible graphing role, so shows up as a slicer. It is set to Totals, to show total over energy sources for each organization.

Chapter7 11.png

These are the graphing roles available.

Vertical axis: The vertical direction, labeled along the left edge of the graph. By default, it shows the actual val- ues in the array — other roles usually show values of an index. All graphs use this role, but the Vertical Axis menu only appears if you have set Swap horizontal and vertical in the Graph setup dialog or for XY graphs.

Horizontal axis: The horizontal direction, labeled with numbers or text along the lower edge of the graph. It always appears, except when you set Swap horizontal and vertical for a 1D array. In the table view, it becomes the column headers.

Key: Defines the color of lines or symbols. By default, it appears for the second index, if the array has more than one dimension. The key appears below the graph — unless reset in the Style tab of the Graph setup dialog. In the table view, it becomes the row headers.

Color key and symbol key: If you check Use separate color/symbol keys in the Graph setup dialog (available for the two line styles that show symbols), it expands the key into two graphing roles, color key and symbol key. Each has its own role menu, letting you assign a second and third index.

Symbol size key: If you further check Allow variable symbol size, it adds symbol size as a fourth graphing role. You can specify the range of sizes from smallest to largest in typographic points, corresponding to smallest and largest values of the corresponding index. (It only works for a numerical index.) Symbol key and symbol size key do not appear in the table view.

Slicers: If the array has a dimension not assigned to a visible graphing role, it appears as a slicer — a menu above the graph. The value you select from a slicer menu applies to the entire graph, so the graph does not show values for other elements of the slicer. You can also select “Totals” from a slicer to show the total over all numerical values over that index. Slicers appear the same in the table as in the graph view. If you have more than one slicer, you can reorder them from top to bottom, in edit mode, simply by dragging a slicer up or down.

See Also


Comments


You are not allowed to post comments.