X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Apr 2016 06:31 AM by  anon
script scatterplot
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:5
New Member


--
18 Apr 2016 06:31 AM
    Hi thank's for all members who participate of this forum I have made a script to show the scatterplot of two raster's but I need a help to draw within a line regression of the same rasters and calculate the correlation regression thank's

    Deleted User



    Basic Member


    Posts:143
    Basic Member


    --
    19 Apr 2016 06:24 PM
    I think that LINFIT, PLOT, and the SCATTERPLOT function can be used to accomplish this task. An example of this is shown below: X = [-3.20, 4.49, -1.66, 0.64, -2.43, -0.89, -0.12, 1.41, 2.95, 2.18, 3.72, 5.26] Y = [-7.14, -1.30, -4.26, -1.90, -6.19, -3.98, -2.87, -1.66, -0.78, -2.61, 0.31, 1.74] p = SCATTERPLOT(x,y,SYM_COLOR='red',/SYM_FILLED) result = LINFIT(X, Y, CHISQR=chi) xfit = findgen(11) - 4 yfit = result[1]*xfit + result[0] lin_plot = plot(xfit, yfit, /overplot) I hope that this will be helpful to you. David Harris Geospatial Solutions

    Deleted User



    New Member


    Posts:5
    New Member


    --
    09 May 2016 11:24 PM
    Thank's David it's really what I want
    You are not authorized to post a reply.