projects
/
ou-jupyter-r-demo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c97184
)
Used more usual function name
author
Neil Smith
<neil.git@njae.me.uk>
Sat, 24 Feb 2018 22:25:44 +0000
(22:25 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Sat, 24 Feb 2018 22:25:44 +0000
(22:25 +0000)
plot_extensions.R
patch
|
blob
|
history
diff --git
a/plot_extensions.R
b/plot_extensions.R
index b72ddb011aa504f9bacea80995732a2d1a1ef9de..11762c26704f75ae7ddd23907550287afacfb8c3 100644
(file)
--- a/
plot_extensions.R
+++ b/
plot_extensions.R
@@
-51,7
+51,7
@@
require(ggplot2)
ggplot(fit$model, aes_string(x = names(fit$model)[2], y = names(fit$model)[1])) +
geom_point() +
-
stat
_smooth(method = "lm", col = "red") +
+
geom
_smooth(method = "lm", col = "red") +
labs(title = paste("Adj R2 = ",signif(summary(fit)$adj.r.squared, 5),
"Intercept =",signif(fit$coef[[1]],5 ),
" Slope =",signif(fit$coef[[2]], 5),