Wolfram.com
WolframAlpha.com
WolframCloud.com
Wolfram Language
Example Repository
Ready-to-use examples of Wolfram Language
Primary Navigation
Categories
Astronomy
Audio Processing
Calculus
Cellular Automata
Chemistry
Complex Systems
Computer Science
Computer Vision
Control Systems
Creative Arts
Data Science
Engineering
Finance & Economics
Finite Element Method
Food & Nutrition
Geography
Geometry
Graphs & Networks
Image Processing
Life Sciences
Machine Learning
Mathematics
Optimization
Physics
Puzzles and Recreation
Quantum Computation
Signal Processing
Social Sciences
System Modeling
Text & Language Processing
Time-Related Computation
Video Processing
Visualization & Graphics
Alphabetical List
Submit a New Example
Learn More about
Wolfram Language
Related Pages
Related Symbols
EntityValue
EntityProperty
BubbleChart3D
BoxWhiskerChart
KeyValueMap
Related Categories
Food & Nutrition
Data Science
Analyze a Color-Based Diet
Obtain a list of foods with the same common outside color
Example Notebook
Open in Cloud
Download Notebook
Find the most common outside color for each food type:
I
n
[
1
]
:
=
f
o
o
d
T
y
p
e
T
o
C
o
l
o
r
=
D
e
l
e
t
e
M
i
s
s
i
n
g
[
E
n
t
i
t
y
V
a
l
u
e
[
"
F
o
o
d
T
y
p
e
"
,
"
C
o
m
m
o
n
O
u
t
s
i
d
e
C
o
l
o
r
"
,
"
E
n
t
i
t
y
A
s
s
o
c
i
a
t
i
o
n
"
]
]
;
Group the food types by color:
I
n
[
2
]
:
=
c
o
l
o
r
T
o
F
o
o
d
T
y
p
e
s
=
G
r
o
u
p
B
y
[
f
o
o
d
T
y
p
e
T
o
C
o
l
o
r
,
I
d
e
n
t
i
t
y
,
K
e
y
s
]
;
Find RGB colors for each food color:
I
n
[
3
]
:
=
c
o
l
o
r
E
n
t
i
t
y
T
o
R
G
B
=
E
n
t
i
t
y
V
a
l
u
e
[
K
e
y
s
[
c
o
l
o
r
T
o
F
o
o
d
T
y
p
e
s
]
,
"
T
y
p
i
c
a
l
C
o
l
o
r
V
a
l
u
e
"
,
"
E
n
t
i
t
y
A
s
s
o
c
i
a
t
i
o
n
"
]
;
Create a
D
a
t
a
s
e
t
expression to see the values in a table:
I
n
[
4
]
:
=
c
o
l
o
r
D
i
e
t
D
a
t
a
s
e
t
=
D
a
t
a
s
e
t
@
M
e
r
g
e
[
{
c
o
l
o
r
T
o
F
o
o
d
T
y
p
e
s
,
c
o
l
o
r
E
n
t
i
t
y
T
o
R
G
B
}
,
A
s
s
o
c
i
a
t
i
o
n
T
h
r
e
a
d
[
{
"
F
o
o
d
T
y
p
e
s
"
,
"
R
G
B
C
o
l
o
r
"
}
#
]
&
]
;
I
n
[
5
]
:
=
V
a
l
u
e
s
[
"
C
o
l
o
r
"
#
R
G
B
C
o
l
o
r
,
"
E
x
a
m
p
l
e
s
"
T
a
k
e
[
#
F
o
o
d
T
y
p
e
s
,
U
p
T
o
[
2
]
]
,
"
F
o
o
d
T
y
p
e
C
o
u
n
t
"
L
e
n
g
t
h
[
#
F
o
o
d
T
y
p
e
s
]
&
/
@
c
o
l
o
r
D
i
e
t
D
a
t
a
s
e
t
]
O
u
t
[
5
]
=
Gather the caloric distribution of the foods for each outside color:
I
n
[
6
]
:
=
c
a
l
o
r
i
e
D
i
s
t
r
i
b
u
t
i
o
n
s
=
K
e
y
V
a
l
u
e
M
a
p
[
S
t
y
l
e
[
E
n
t
i
t
y
V
a
l
u
e
[
#
2
[
"
F
o
o
d
T
y
p
e
s
"
]
,
"
R
e
l
a
t
i
v
e
T
o
t
a
l
C
a
l
o
r
i
e
s
C
o
n
t
e
n
t
"
,
D
e
l
e
t
e
M
i
s
s
i
n
g
]
,
#
2
[
"
R
G
B
C
o
l
o
r
"
]
]
&
,
c
o
l
o
r
D
i
e
t
D
a
t
a
s
e
t
]
;
Visualize the calorie distributions using the colors associated with each one:
I
n
[
7
]
:
=
B
o
x
W
h
i
s
k
e
r
C
h
a
r
t
c
a
l
o
r
i
e
D
i
s
t
r
i
b
u
t
i
o
n
s
,
O
u
t
[
7
]
=
Visualize the average nutrition of the food colors sized by count in 3D nutrition space:
I
n
[
8
]
:
=
B
u
b
b
l
e
C
h
a
r
t
3
D
S
t
y
l
e
A
p
p
e
n
d
E
n
t
i
t
y
V
a
l
u
e
#
F
o
o
d
T
y
p
e
s
,
r
e
l
a
t
i
v
e
p
r
o
t
e
i
n
c
o
n
t
e
n
t
,
r
e
l
a
t
i
v
e
f
a
t
c
o
n
t
e
n
t
,
r
e
l
a
t
i
v
e
c
a
r
b
o
h
y
d
r
a
t
e
c
o
n
t
e
n
t
,
D
e
l
e
t
e
M
i
s
s
i
n
g
/
*
M
e
d
i
a
n
,
L
e
n
g
t
h
[
#
F
o
o
d
T
y
p
e
s
]
,
#
R
G
B
C
o
l
o
r
&
/
@
V
a
l
u
e
s
@
N
o
r
m
a
l
@
c
o
l
o
r
D
i
e
t
D
a
t
a
s
e
t
,
O
u
t
[
8
]
=
See Also
NutritionReport
FoodCompassPlot
VitaminData
Related Symbols
EntityValue
EntityProperty
BubbleChart3D
BoxWhiskerChart
KeyValueMap
Publisher Information
Contributed by:
Wolfram Staff