mas wrote:1. How to modify the code above to add a linear regression line, with options for its style (color and thickness)?
Just add another addplot command:2. How to show its equation (with many digits)? and to change its "X" and "Y" symbols? (so the equation is using exactly the same symbols as on the axis).
The usual tikz node command should do the trick.
LaTeX forum ⇒ Graphics, Figures & Tables ⇒ pgfplots : How to add a linear regression line? Topic is solved
Information and discussion about graphics, figures & tables in LaTeX documents.
Who is online
Users browsing this forum: No registered users and 9 guests