NominalScale
NominalScale[{cat1,cat2,…,catn}]
represents a set of unordered categories cati.
NominalScale[cat1lab1,…,catnlabn >]
also associates the category cati with the labels labi.
NominalScale[…,catilabi,… >]
uses labi to represent cati in plots.
automatically determines the categories.
Details and Options
- Nominal scales are used to identify things such as products, names and places. Typical examples include:
-
apple,banana,orange, … fruit categories London,NYC,Miami,Paris,… city categories sad,happy,angry, … emotion categories - Use NominalScale with ScalingFunctions to place categorical values along an axis.
- There is no ordering between the categories; they are either equal or not.
- The categories cati can be any expression.
- NominalScale[…][prop] gives the specified property of an ordinal scale.
- Possible properties include:
-
"CategoryList" list of categories {cat1,…,catn} "LabelAssociation" association of the form <…,catilabi,… > "LabelList" list of labels {lab1,…,labn} "Properties" list of supported properties - NominalScale[…][prop,arg] or NominalScale[…][prop][arg] return the property prop according to the argument arg.
- Possible properties prop and arguments arg include:
-
"Label" cati label labi corresponding to cati "Labels" {…,cati,…} list of labels labi corresponding to cati
Examples
open allclose allBasic Examples (4)
Scope (23)
Example Scales (11)
Categories and Labels (7)
Categories can be any type of expression, such as strings:
Numeric categories do not use a numeric scale:
Assign labels and an order to numeric values:
Automatically detected categories are shown in the order they appear in the data:
Specify the categories and what order they should appear in:
Categories that are omitted from the scale are treated as missing and are not shown:
By default, the categories are used as labels:
Specify labels to use in place of the categories:
Extracting Properties (5)
Options (1)
Applications (11)
Basic Applications (1)
Use NominalScale in a BubbleChart:
Use it in GroupBy:
Agriculture (1)
Use ParallelAxisPlot to plot multi-categorical orange wholesale data from the USDA:
Chemistry (3)
Commerce (1)
Use ParallelAxisPlot to plot car specifications with NominalScale:
Text
Wolfram Research (2022), NominalScale, Wolfram Language function, https://reference.wolfram.com/language/ref/NominalScale.html.
CMS
Wolfram Language. 2022. "NominalScale." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NominalScale.html.
APA
Wolfram Language. (2022). NominalScale. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NominalScale.html