HARPgroup / HARParchive

This repo houses HARP code development items, resources, and intermediate work products.
1 stars 0 forks source link

plotting residuals easily #1326

Closed rburghol closed 2 months ago

rburghol commented 2 months ago

@ilonah22 @COBrogan @mwdunlap2004 I found out that we can create a normal plot output from an lm by including an argument indicating the number of the plot that we want to save:

jun_model <- data_lm$atts$lms[[6]]
plot(jun_model, 1)
mwdunlap2004 commented 2 months ago

Using what Connor recomended for the JSON, I was able to edit our residual plot function with this plotting method.

Screenshot 2024-07-29 at 8 55 06 AM

daymet_01665500_residual6 This is the same residual we had looked at last Thursday that was different when taken directly from data_lm, and when from the JSON we had made, with this method the residual plot looks correct both ways