Search found 1 match
- Wed May 16, 2018 4:38 pm
- Forum: Graphics, Figures & Tables
- Topic: pgfplots : How to add a linear regression line?
- Replies: 10
- Views: 18328
pgfplots : How to add a linear regression line?
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:
\addplot+[no marks,red, thick] {1.2304 * x + 0.5121 } ;
2. How to show its equation (with many digits)? and to change its "X" and "Y" symbols ...