Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Explore the fatty acid composition of cooking fats and oils
ResourceFunction["FattyAcidsExplorer"][] creates an interactive bar chart for exploring the fatty acid content in 17 cooking fats and oils. | |
ResourceFunction["FattyAcidsExplorer"][format] returns the fatty acid content for all oil types in the data in the specified format. |
Display the interactive BarChart to select an oil type and fatty acid type:
| In[1]:= |
| Out[1]= | ![]() |
Display the categorized fatty acids data as a Dataset:
| In[2]:= |
| Out[2]= | ![]() |
Display the data as a Tabular object:
| In[3]:= |
| Out[3]= | ![]() |
Display associations of the complete data, including food entities and full property names:
| In[4]:= |
| Out[4]= | ![]() |
Sort the Tabular data according to the monounsaturated oleic acid content with SortBy, then display the oleic acid in all of the cooking fats and oils with ListPlot:
| In[5]:= | ![]() |
| Out[6]= | ![]() |
BarChart is another effective way to visualize the fatty acids data. In this case, the data is sorted according to the amount of saturated palmitic acid:
| In[7]:= | ![]() |
| Out[8]= | ![]() |
Use Histogram to group the values for two saturated fatty acids (palmitic acid and stearic acid) into bins and see how frequently they occur:
| In[9]:= |
| Out[9]= | ![]() |
Visualize and compare the distribution of values for the most dominant fatty acid in each category—a MUFA, a PUFA and a saturated fatty acid. SmoothHistogram replaces the discrete bins of Histogram with a continuous curve to show the shape and overlap of the distributions. The curve represents the probability density, rather than a raw count:
| In[10]:= |
| Out[10]= | ![]() |
BoxWhiskerChart displays the minimum, median and maximum values for the three dominant fatty acids, as well as the interquartile range:
| In[11]:= |
| Out[11]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License