Skip to content

Interpretation of rug lines? #125

Answered by pbreheny
jarbet asked this question in Q&A
Discussion options

You must be logged in to vote

The rug option is documented in ?plot.visreg. It places a tick at every observation. There's also rug=2, which places ticks on the top or bottom depending on whether the observation is above or below the prediction. I don't think it provides any meaningful information if you're already plotting the partial residuals, but if you're not, it provides a bit of a surrogate so that you can still see something about where the data is.

The quantile idea is interesting, especially if you have a lot of observations and overplotting is a concern. There's no option to do this directly in visreg, but it's straightforward to add this yourself as an annotation:

library(ggplot2)
library(visreg)
lm(price ~ 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jarbet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants