powered by
Visualizes the nine definitions of R-squared to compare their values and identify potential issues (e.g., values exceeding 1 or falling below 0).
# S3 method for r2_kvr2 plot(x, ...)
A ggplot object representing the visual analysis.
ggplot
An object of class r2_kvr2.
r2_kvr2
Currently ignored.
df1 <- data.frame(x = 1:6, y = c(15, 37, 52, 59, 83, 92)) model <- lm(y ~ x - 1, data = df1) # No-intercept model r2(model)
Run the code above in your browser using DataLab