0

I have a some scatter plots with corresponding regression lines in MS Excel similar to the one shown below. enter image description here

I want to have this plot in my Latex document. I could simply insert this as an image, but the font styles would not be consistent with that of the "Latexish" text in the document. I know how to recreate scatter plots on Latex using the data, but my concern is creating the scatter plot plus the regression line with labelled equation and R value as shown above.

Melanka
  • 101
  • 2
    You could search for "regression" on this site. You could also use google and search for "latex regression". I found e.g. this https://latexdraw.com/linear-regression-in-latex-using-tikz/ in no time. Please show some effort before posting a question. – hpekristiansen Jan 06 '23 at 04:09

1 Answers1

0

You can export your plot in PDF and import it in your latex document.

A better alternative is take that file and convert it in svg with Inkscape and edit it if it's necessary. Then, in your latex document, you can insert your image with includesvg preserving the font of your document.

enter image description here

enter image description here

Fig. 1 shows the Excel plot and Fig. 2 the svg file without any modification. In Fig. 3, the equation was modified in Inkscape and formatted as a latex equation.

xpt
  • 46