Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
r_workshop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Merge Requests
0
Merge Requests
0
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Arndt Leininger
r_workshop
Commits
e5262e8b
Commit
e5262e8b
authored
Dec 11, 2018
by
Arndt Leininger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
errorbar instead of geom_ribbon
parent
7c1f5901
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
hands-on3.R
hands-on/05_visualization/hands-on3.R
+1
-3
hands-on3_solutions.R
hands-on/05_visualization/hands-on3_solutions.R
+1
-1
No files found.
hands-on/05_visualization/hands-on3.R
View file @
e5262e8b
...
...
@@ -27,9 +27,7 @@ glm(vote ~ age + black + lib_con, d, family = binomial())
# intervals from the model and saving them to a data.frame.
# 4. Now plot this new data.frame. Use geom_point() for the coefficient estimates
# and geom_ribbon() for the confidence intervals.
# and geom_errorbar() for the confidence intervals.
# 5. The intercept is on entirely different scale as the other coefficients.
# Improve the plot through omitting the intercept.
...
...
hands-on/05_visualization/hands-on3_solutions.R
View file @
e5262e8b
...
...
@@ -32,7 +32,7 @@ names(coefs) <- c('var', 'coef', 'lwr', 'upr')
# 4. Now plot this new data.frame. Use geom_point() for the coefficient estimates
# and geom_
ribbon
() for the confidence intervals.
# and geom_
errorbar
() for the confidence intervals.
library
(
ggplot2
)
ggplot
(
coefs
,
aes
(
var
,
coef
))
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment