pbreheny / visreg

Visualization of regression functions
http://pbreheny.github.io/visreg/
61 stars 18 forks source link

[conditional plots] Plot fitted line on top of residuals #50

Closed vspinu closed 4 years ago

vspinu commented 6 years ago

When thousands of residuals are plotted, they obscure the lines. Non-conditional plots do the right thing by plotting the fitted line on top of residuals, but conditional plots (by="var") do it the other way around.

Would be also nice to have transparency settings for residuals (particularly useful with overlay=T), as well as an option for subsampling in order to speed up big data plotting.

webb-e commented 5 years ago

I would like to second this suggestion.

Patlane commented 5 years ago

Hi!

I'm having the same issue. How to plot the lines over the residuals in the interaction plots? I'm using the gg=T option. If I use partials=FALSE, then the gg=T option does not have any effect any more and I get the lattice plot. I would prefer ggplot with the lines plotted over the residuals. Thank you very much!

pbreheny commented 4 years ago

Sorry this took so long, but it required a fair amount of internal restructuring of code. This is now