Skip to content

Commit 8222e09

Browse files
committed
minot comments
1 parent 664f9bd commit 8222e09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/jaspBivariate.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jaspBivariate <- function(
6464
df <- data.frame(x = x, y = y)
6565
aes <- ggplot2::aes(x = x, y = y)
6666
} else {
67-
if(type != "point" && type != "none")
68-
stop("grouping variable is allowed only for type = 'point' or 'none'.")
67+
if (type != "point" && type != "none")
68+
stop2("grouping variable is allowed only for type = 'point' or 'none'.")
6969

7070
df <- data.frame(x = x, y = y, group = group)
7171
aes <- ggplot2::aes(x = x, y = y, group = group, fill = group, color = group)
@@ -111,8 +111,8 @@ jaspBivariate <- function(
111111

112112

113113
if (predict == "lm") {
114-
fit <- lm(y~x, data = df)
115-
preds <- predict(fit, newdata = df, interval = "prediction", level = predictLevel)
114+
fit <- stats::lm(y~x, data = df)
115+
preds <- stats::predict(fit, newdata = df, interval = "prediction", level = predictLevel)
116116
preds <- as.data.frame(preds)
117117
preds[["x"]] <- df[["x"]]
118118
predictArgs$data <- preds

0 commit comments

Comments
 (0)