From 4637335c2cf906d6eaf43201a84d1dd37244f3ba Mon Sep 17 00:00:00 2001 From: Manny Gimond Date: Tue, 23 Jul 2024 14:31:53 -0400 Subject: [PATCH] fixed bug with x variable --- R/eda_lm.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/eda_lm.R b/R/eda_lm.R index ba87583..72a2eae 100755 --- a/R/eda_lm.R +++ b/R/eda_lm.R @@ -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) }