Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create a nutrition plot for a given food
ResourceFunction["FoodCompassPlot"][food] returns a plot of the nutrition of the Entity food compared to the recommended daily values. |
Creates a plot showing the nutrition of an orange:
| In[1]:= |
| Out[1]= | ![]() |
Create a plot for fast food chicken wings:
| In[2]:= | ![]() |
| Out[2]= | ![]() |
FoodCompassPlot also works with EntityInstance for more specific results:
| In[3]:= |
| Out[3]= | ![]() |
Multiple Entity or EntityInstance objects can be combined using EntityGroup:
| In[4]:= | ![]() |
| Out[4]= | ![]() |
Missing is returned when the proper nutritional information does not exist:
| In[5]:= | ![]() |
| Out[5]= |
If all the nutrition is 0, FoodCompassPlot will not render properly:
| In[6]:= |
| Out[6]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License