[ncl-talk] How to plot regression coefficient

Rainer Luptowitz rlupt001 at ucr.edu
Mon Sep 15 12:00:41 MDT 2014


Hi,

How do you plot a regression coefficient line on an x,y plot and spatial
map?
If you have

x=time (years)
y=precipitation rate (mm/s).

rc=regCoef(x,y(lat|:,lon|:,time|:))

;dimensions
rc!0="lat"
rc!1="lon"
;rc!time="time"
;coordinates
rc&lat=lat
rc&lon=lon
;rc&time=time

printVarSummary(rc)
print("rc MinMax")
printMinMax(rc,0)

I tried to create

y=mx+b

but the right hand side couldn't be coerced to the left hand side. So I'm
not sure if this is the way to set up the plot parameters for

plot=gsn_csm_xy(wks,x,y,res)

If someone could explain how to go about plotting an 'xy plot' and 'spatial
contour map' of the regression coefficient it would be most helpful.

Thank you,

Rainer Luptowitz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140915/2b78dcc6/attachment.html 


More information about the ncl-talk mailing list