+ Reply to Thread
Results 1 to 21 of 21

Scatter graphs and horizontal line intercepts

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Scatter graphs and horizontal line intercepts

    Dear All,
    I am attempting to find where a horizontal line drawn across an X by Y graph intercepts the curve.

    I am plotting temperature on the x axis against speed on the y axis. The results form a curve from zero to maximum, and back to zero as temperature increases.

    I have an optimal rate which I would like to determine the temperature breadth of. This involves drawing a line across the function curve and determining the temperature at which it intercepts the performance curve (against the x axis "temperature").

    Can anyone help? I hope my description is adequate!
    Thanks!
    Last edited by Notrealbright; 10-07-2010 at 12:03 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Scatter graphs and horizontal line intercepts

    Hi Notrealbright
    Possibly better of in a math forum as you have to solve it with quadratic equati0n and linear equation
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Cheers Pike. I may have to try it the "not real bright" way and simply extrapolate from a line across the graph. Old school.

    Hope your weather in Moruya was as pleasant as it was today in Wollongong

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Scatter graphs and horizontal line intercepts

    Notreal bright
    didn't get it but now i do. Put all the data in a chart and attach it. It all depends on the shape of the curve/curves line/lines.

    No, it was over cast and cool this afternoon.

  5. #5
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    I've attached an example file. The top row is temperature. Column 1 is speed in m/s for 10 individuals. For interests sake the data shows a lizard's running speed at these temperatures. Biologist, me. Mathematician, not me

    Thankyou very much for your help with this mate, I appreciate it. I have 32 of these data sets over species and treatment temperatures.


    EDIT: Sorry, realised I had omitted the averages on the bottom of the spreadsheet, have edited accordingly. I am using the average speed (m/s) from each temperature treatment. Cheers.
    Attached Files Attached Files
    Last edited by Notrealbright; 09-28-2010 at 04:57 AM.

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Scatter graphs and horizontal line intercepts

    Dude wheres the chart?

  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Scatter graphs and horizontal line intercepts

    mate,
    have a look here as it may help
    http://www.andypope.info/charts/intersection.htm

  8. #8
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Quote Originally Posted by pike View Post
    Dude wheres the chart?
    Sorry, it's attached here.

    Thanks for the link- I'll check it out in the 'morn. You're a champ!
    Attached Files Attached Files

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Scatter graphs and horizontal line intercepts

    You can make use of the FORECAST formula.

    chart has 2 additional series. First plots the datum Speed line.
    2nd is a single point with 100% minus error bars.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  10. #10
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Thanks Andy! Can I tweak the formula to determine the value of the second intercept point? I'm trying to calculate the breadth of temperatures over which "speed" is above 80% of mean maximum.

    Pike, I am having trouble fitting my data to the example of Andy's you posted up for me. I'll keep at it but any advice is very much welcomed. Thanks again.

  11. #11
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    I've managed to work things out! The formula Andy provided can be used to analyse the curve after the first intercept simply by only including data points in the formula AFTER the line intercepts the curve the first time. This allows the formula to be used to determine any intercept point, and graphs are unnecessary.

    Thanks for your help guys, it's invaluable.

  12. #12
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Sadly the formula I was using above to calculate the second intercept seems not to be working in several cases. This is because the maximum speed for individuals is at different temperatures and the formula must be changed accordingly. Hmmmm...

    Any ideas welcomed! I desperately need to get a line intercept for each time the horizontal line intercepts the curve.
    Last edited by Notrealbright; 09-29-2010 at 12:34 AM.

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Scatter graphs and horizontal line intercepts

    If the drop off is always between the last 2 data points you can use the TREND formula
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Sorry Andy, sadly the drop-off begins somewhere between the fourth- and second-last points; quite variable. This is particularly so in the individual, rather than averaged, data that I also need to analyse.

    Any hints on how to get the complex intersection graph example (posted above by Pike) to word on my data set?

    Thanks so very much for your help.

  15. #15
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Scatter graphs and horizontal line intercepts

    The complex intersect function expects the data to be in rows not columns.

    If you create a table of xy values for the average and optimum lines the function will work.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Thanks Andy, although I am having a deal of trouble with it!

    When I change any of the data on the spreadsheet you attached the intersections disappear and I cannot get them back. I get #NAME? coming up after any changes and it remains as such. I am attempting to use the individual speed data instead of the average. I was hoping to simply select each row and have the intersection output remain the same.

    What on Earth am I doing wrong? How can I change the data input without losing the beautiful Intersects?

  17. #17
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Scatter graphs and horizontal line intercepts

    The #NAME would suggest you have not enable d macros.

    The Intersectcomplex is a user defined function and requires you to enable macros in order for the code to calculate the results.

    You can use individual data rather than the Mean you just need to alter the ranges used.

  18. #18
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Oh dear, a whole day of frustration fueled by not enabling macros. It seems to be working now, I'll post again when I am sure. Thanks a billion to the power of another billion, mate!

  19. #19
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Andy, Sir, I offer you my sincere gratitude. Your advice is absolutely fundamental to analysing a large part of my PhD research. Thankyou for your patience and assistance with solving my problem (crisis in my little world).

    YOU LITTLE RIPPER! .......(Highly commendable compliment)

  20. #20
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Scatter graphs and horizontal line intercepts

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  21. #21
    Registered User
    Join Date
    09-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Scatter graphs and horizontal line intercepts

    Cheers Pike. Thanks again guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1