Page 1 of 1

plotting trendline to scatter graph

Posted: Tue Mar 26, 2019 9:02 am
by BT454
Good morning,
I'm coding a scatter plot to show the relationship between storage inventories (x axis) and gas prices (y axis).
I have made the graph, and now I'd like to plot a trend-line on the graph fitted to a third or fourth order polynomial, describing the relationship with price as the dependent variable (y) and inventories as the independent variable (x).
I can create an equation using the PDL function, but I'm not sure how to plot it.
Is this possible? Is there a better way than using PDL?
Thank you again!
Bob

Re: plotting trendline to scatter graph

Posted: Tue Mar 26, 2019 9:52 am
by BT454
Hi again,
I found the auxillary_spec functions (linefit, etc) and this took care of it.
Sorry for the false alarm!
Thanks agian