Assigning Labels and Axisscales: Difference between revisions
imported>Scott No edit summary |
imported>Scott |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
Assigning ''' | Assigning '''labels''' and '''axisscales''' in a DataSet Object is similar to assigning [[Assigning_Sample_Classes | classes]]. You can assign them from the [[DataSet_Editor_Window:_Layout | Data Set Editor]] or command line. | ||
==From DataSet Editor== | ==From DataSet Editor== | ||
Line 7: | Line 7: | ||
===Labels Tab=== | ===Labels Tab=== | ||
In the '''Row Labels''' and '''Column Labels''' tabs of the DataSet Editor you'll find columns for editing labels, axisscales, classes, and included data. There are | In the '''Row Labels''' and '''Column Labels''' tabs of the DataSet Editor you'll find columns for editing labels, axisscales, classes, and included data. There are several ways of editing these columns: | ||
* Directly editing each "cell" with a value. Select a particular cell and enter the desired value. | * Directly editing each "cell" with a value. Select a particular cell and enter the desired value. | ||
Right-click the header button to display the context menu to access these items: | |||
* Copy/Paste the entire column of values from the clipboard (Copy or Paste menu item). | * Copy/Paste the entire column of values from the clipboard (Copy or Paste menu item). | ||
* Import the values from a variable in the workspace (via Load/Extract Label menu item). | * Import the values from a variable in the workspace (via Load/Extract Label menu item). | ||
* Edit text list (directly or copy/paste) from a list box (via Edit Label menu item). | |||
'''NOTE:''' Additional "sets" of labels and axisscales can be added using the drop-down menus directly below the header buttons. | |||
[[Image:DSE_Labels_RightClickMenu.png| | | [[Image:DSE_Labels_RightClickMenu.png| | | ]] | ||
===Data Tab=== | ===Data Tab=== | ||
Values from the DataSet Editor data table can be extracted into '''axiscales'''. This option is available from the column/row right-click menu in the data table. | |||
[[Image:DSE_Data_RightClickMenu.png| | | ]] | |||
==From Command Line== | ==From Command Line== | ||
Labels and axisscales can be assigned directly to a DataSet Object at the command line using their respective fields. The following is simple example using the Wine demo dataset. We'll reassign less abreviated country labels: | |||
<pre> | |||
load wine | |||
wine.label{1} | |||
wine.label{1,1} = { 'France' 'Italy' 'Switzerland' 'Australia' 'Britain' 'U.S.A.' 'Russia' 'Czech' 'Japan' 'Mexico' }; | |||
wine.label{1} | |||
</pre> | |||
More example can be found [[DataSet_Object_Examples|here]]. |
Latest revision as of 17:11, 13 July 2011
Assigning labels and axisscales in a DataSet Object is similar to assigning classes. You can assign them from the Data Set Editor or command line.
From DataSet Editor
Labels Tab
In the Row Labels and Column Labels tabs of the DataSet Editor you'll find columns for editing labels, axisscales, classes, and included data. There are several ways of editing these columns:
- Directly editing each "cell" with a value. Select a particular cell and enter the desired value.
Right-click the header button to display the context menu to access these items:
- Copy/Paste the entire column of values from the clipboard (Copy or Paste menu item).
- Import the values from a variable in the workspace (via Load/Extract Label menu item).
- Edit text list (directly or copy/paste) from a list box (via Edit Label menu item).
NOTE: Additional "sets" of labels and axisscales can be added using the drop-down menus directly below the header buttons.
Data Tab
Values from the DataSet Editor data table can be extracted into axiscales. This option is available from the column/row right-click menu in the data table.
From Command Line
Labels and axisscales can be assigned directly to a DataSet Object at the command line using their respective fields. The following is simple example using the Wine demo dataset. We'll reassign less abreviated country labels:
load wine wine.label{1} wine.label{1,1} = { 'France' 'Italy' 'Switzerland' 'Australia' 'Britain' 'U.S.A.' 'Russia' 'Czech' 'Japan' 'Mexico' }; wine.label{1}
More example can be found here.