Skip to content

Commit 72bc39a

Browse files
committed
prefix fortify in tm_a_regression
1 parent c440364 commit 72bc39a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/tm_a_regression.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ srv_a_regression <- function(id,
512512
selected = restoreInput(ns("label_var"), selected)
513513
)
514514

515-
data <- fortify(stats::lm(form, data = ANL))
515+
data <- ggplot2::fortify(stats::lm(form, data = ANL))
516516
cooksd <- data$.cooksd[!is.nan(data$.cooksd)]
517517
max_outlier <- max(ceiling(max(cooksd) / mean(cooksd)), 2)
518518
cur_outlier <- isolate(input$outlier)
@@ -652,7 +652,7 @@ srv_a_regression <- function(id,
652652
substitute(
653653
expr = {
654654
class(fit$residuals) <- NULL
655-
data <- fortify(fit)
655+
data <- ggplot2::fortify(fit)
656656
plot <- graph
657657
},
658658
env = list(

0 commit comments

Comments
 (0)