Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Scatterplot with two or more lines

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I was wondering if anyone knows how to get a scatterplot and put more than one regression line on it....I want to split it for pos value regression and neg value regression (or line of best fit). If you have any suggestions it would be greatly appreciated.
    Thanks a lot,
    Have a great day!

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-05-10 08:16, BRADX wrote:
    I was wondering if anyone knows how to get a scatterplot and put more than one regression line on it....I want to split it for pos value regression and neg value regression (or line of best fit). If you have any suggestions it would be greatly appreciated.
    Thanks a lot,
    Have a great day!
    You can add trendlines by selecting a point in the data series, then Selecting Chart | Add Trendline...

    The easiest way to do a custom trendline is to add a series to the chart, then base the
    new trendline on that series.

    HTH

    "Interfere? Of course we should interfere! Always do what you're best at, that's what I say!" -- The Doctor, Nightmare of Eden

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Plot 2 series instead of 1. For example, if your Y values contained in A2:A8 are...

    {1;2;-3;4;7;-5;-8}

    Enter the formula, =IF(A2>0,#N/A,A2), into B2 and copy down to B8 to produce negative Y values...

    {#N/A;#N/A;-3;#N/A;#N/A;-5;-8}

    ...and enter the formula, =IF(A2>0,A2,#N/A), into C2 and copy down to C8 to produce positive Y values...

    {1;2;#N/A;4;7;#N/A;#N/A}

    Chart these as separate chart series...

    =SERIES(Sheet1!$B$1,,Sheet1!$B$2:$B$8,1)
    =SERIES(Sheet1!$C$1,,Sheet1!$C$2:$C$8,2)

    ...and apply a trendline to each series.


    [ This Message was edited by: Mark W. on 2002-05-12 15:38 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •