Assigning Labels and Axisscales: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
No edit summary
imported>Scott
 
(2 intermediate revisions by the same user not shown)
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 command line or [[DataSet_Editor_Window:_Layout | Data Set Editor]].  
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 three general ways of editing these columns:
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| | | ]]
Line 23: Line 26:
==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|other examples]].

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.

DSE Labels RightClickMenu.png

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.

DSE Data RightClickMenu.png


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.