Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Plot the growth of lists and temporal data
ResourceFunction["ListGrowthPlot"][{n1,n2,…}] plots the percentage growth of n. | |
ResourceFunction["ListGrowthPlot"][{n11,n12,…},{n21,n22,…},…] plots the percentage growth of each list of n. | |
ResourceFunction["ListGrowthPlot"][td] plots the percentage growth of TemporalData td. |
AspectRatio | ratio of height to width | |
"BalancePoint" | 1 | zero growth point on the x-axis for all lists |
Frame | None | whether to put a frame around the plot |
InterpolationOrder | 2 | polynomial degree of curves used in joining data points |
PlotRange | Automatic | this setting is overridden and has no effect |
Ticks | Automatic | this setting is overridden and has no effect |
Plot the percentage growth of a list of numbers:
In[1]:= |
Out[1]= |
Plot the percentage growth of multiple lists of numbers:
In[2]:= |
Out[2]= |
Plot the percentage growth of a time series:
In[3]:= |
Out[3]= |
Plot the percentage growth of multiple paths within one TemporalData object:
In[4]:= |
Out[4]= |
All plotted lines meet at {b, 0} where b is the value of the option "BalancePoint":
In[5]:= |
Out[5]= |
Plot the performance of two stock investments, even though the stock prices are different:
In[6]:= |
Out[6]= |
Compare the changes in population of two countries, even though the populations are of vastly different magnitude:
In[7]:= |
Out[7]= |
Percentage change from zero is meaningless, so an error occurs if the value of the balance point is zero for any of the lines plotted:
In[8]:= |
Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License