Skip to content

Commit

Permalink
fixed bug with x variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgimond committed Jul 23, 2024
1 parent b000ef0 commit 4637335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/eda_lm.R
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ eda_lm <- function(dat, x, y, xlab = NULL, ylab = NULL, px = 1, py = 1,
title(xlab = xlab, line =1.8, col.lab=plotcol)
if(reg == TRUE) {
#abline(M, lw = 2, col = lm.col )
line_x <- with(dat, seq(min(x), max(x), length.out=300))
line_x <- seq(min(x), max(x), length.out=300)
line_y <- predict(M, newdata = data.frame(x = line_x))
lines(line_x, line_y, lw = 2, col = lm.col)
}
Expand Down

0 comments on commit 4637335

Please sign in to comment.