Assigning Labels and Axisscales: Difference between revisions
imported>Scott No edit summary |
imported>Scott No edit summary |
||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
Assigning '''labels''' and '''axisscales''' in a DataSet Object is similar to assigning [[Assigning_Sample_Classes | classes]]. You can assign them from the | 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 12: | Line 12: | ||
* 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). | ||
'''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| | | ]] | ||
Line 23: | Line 24: | ||
==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]]. | |||
[[DataSet_Object_Examples| |
Revision as of 17:02, 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 three general ways of editing these columns:
- Directly editing each "cell" with a value. Select a particular cell and enter the desired value.
- 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).
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.