Skip to content

Commit

Permalink
Doc/example tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Mar 28, 2009
1 parent df6fe2d commit e630e60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/geom-smooth.r
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ GeomSmooth <- proto(Geom, {
grid$ucl <- err$fit + 1.96 * err$se.fit
grid$lcl <- err$fit - 1.96 * err$se.fit

qplot(wt, mpg, data=mtcars, colour=factor(cyl)) + geom_smooth(aes(min=lcl, max=ucl), data=grid, stat="identity")
qplot(wt, mpg, data=mtcars, colour=factor(cyl)) +
geom_smooth(aes(ymin = lcl, ymax = ucl), data=grid, stat="identity")
}

})
4 changes: 2 additions & 2 deletions R/stat-smooth.r
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ StatSmooth <- proto(Stat, {
)
desc_outputs <- list(
"y" = "predicted value",
"min" = "lower pointwise confidence interval around the mean",
"max" = "upper pointwise confidence interval around the mean",
"ymin" = "lower pointwise confidence interval around the mean",
"ymax" = "upper pointwise confidence interval around the mean",
"se" = "standard error"
)

Expand Down

0 comments on commit e630e60

Please sign in to comment.