You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I put two linear trend lines in a scatter plot with two different sets of values?

I have to set up a scatter plot for a chem lab. My scatter plot contains two different sets of data, one for pre-1982 pennies and one for post-1982 pennies. I was able to enter everything and create the scatter plot. Now I have to put linear trend lines in there but I need one for each set of data. When I want to put a linear trend line in there it creates only one for all data. Is there any way I can have two?User uploaded file

MacBook Pro (13-inch Mid 2012)

Posted on Sep 4, 2014 8:02 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 4, 2014 10:42 AM

Click a series in the chart first and then choose the Trendline option you want in the drop down under the Series tab:


User uploaded file


Repeat for each series and you should get something like this:


User uploaded file

22 replies

Sep 4, 2014 7:10 PM in response to l_hi

It's not in an obvious place. Click the chart, the Edit Data References. You should see something like this (look lower left):


User uploaded file


Uncheck Share X Values if it is checked and you should then see two series and be able to click each one in turn and set trend lines, etc., independently.


SG

Sep 4, 2014 9:54 PM in response to SGIII

I did it but I still don't have two sets of data values. Is there anything else I have uncheck or something like that? I see a difference in my screenshot in that not my two masses are clicked and have that dot, like in yours, but the columns next to each other do. I tried dragging it, but that isn't possible. How do I change that?

User uploaded file

Sep 5, 2014 1:34 AM in response to l_hi

Hi l_hi,


Sometimes it is easier to delete a misbehaving plot and start again.

Click on the column label A, then shift-click on the column label D

Edit: Click on the column label B, then shift-click on the column label E

User uploaded file

Insert a scatter plot

User uploaded file


Now click on one series within the plot

User uploaded file

Pre 1982 is selected.

Follow SG's instructions to add a trend line. Repeat with the other series.


Regards,

Ian.


Edited: Column labels.

Sep 5, 2014 9:13 AM in response to l_hi

Hi I_hi,


The forums are not behaving. Screen shots often do not display. Your screen shot is not displaying 🙂.


Edit: **Delete the Scatter Plot and start again.**


Here is a screen shot of my first screen shot

User uploaded file

I hope this shows!

Click on the column label B, then shift-click on the column label E

Insert a scatter plot.

Regards,

Ian.

Edit: **Delete the Scatter Plot and start again.**

How do I put two linear trend lines in a scatter plot with two different sets of values?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.