Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create a bar chart comparing the content of the nine essential amino acids in a list of foods
ResourceFunction["EssentialAminoAcidsChart"][foods] returns essential amino acid information in a BarChart for a list of foods. | |
ResourceFunction["EssentialAminoAcidsChart"][foods,format] returns essential amino acid information for a list of foods in a specified format. |
| ChartLabels | Before | food names |
| ChartLegends | Below | nutrient properties |
| BarOrigin | Left | origin placement for bars |
| FontSize | 10 | font size of chart labels and legends |
| PlotLabel | "" | optional overall label for chart |
| ImageSize | 600 | overall image size expressed in points |
| ChartLabelsBeforefood namesChartLegendsBelownutrient propertiesBarOriginLeftorigin placement for barsFontSize10font size of chart labels and legendsPlotLabel""optional overall label for chartImageSize600overall image size expressed in pointsAutomaticabsolute margins around imageBackgroundAutomaticbackground color for chart | Automatic | absolute margins around image |
| Background | Automatic | background color for chart |
| "Dataset" | Dataset of the essential amino acids content in the foods |
| "Data" | associations of the foods and their essential amino acids content |
| "BarChart" | (default) bar chart visualization |
Compare the essential amino acids in these fish, which also are good sources of omega-3 fatty acids:
| In[1]:= |
| Out[1]= | ![]() |
Visualize the essential amino acids with a customized chart design:
| In[2]:= | ![]() |
| Out[2]= | ![]() |
Display the essential amino acids data as a Dataset:
| In[3]:= |
| Out[3]= | ![]() |
Display the data as associations:
| In[4]:= |
| Out[4]= | ![]() |
Use ChartElements and other BarChart options to draw attention to your chart:
| In[5]:= | ![]() |
| Out[5]= | ![]() |
Change FontSize for the chart labels and legend:
| In[6]:= | ![]() |
| Out[6]= | ![]() |
Planning beans or lentils with rice for dinner? Pair different varieties to see the most nutritious combination of essential amino acids:
| In[7]:= | ![]() |
| Out[8]= | ![]() |
Write a custom ChartElementFunction for a unique and artistic visualization:
| In[9]:= | ![]() |
| Out[10]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License