Permalink
Browse files

bugfixes

  • Loading branch information...
1 parent 6e04937 commit b29965a8c537344ff7f1afd1cf0b19414287a784 @jrnold committed Sep 22, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −1 R/stata.R
  2. +4 −2 man/theme_stata.Rd
View
@@ -198,7 +198,7 @@ theme_stata_colors <- function(scheme="s2color") {
##' @note Stata graph schemes include what ggplot seperates into
##' themes and scales, as well as defaults specific to different graph
##' types (which ggplot does not support). These themes should be used
-##' in conjunction with \code{\link{stata_colour_scale}}, see the examples.
+##' in conjunction with \code{\link{scale_colour_stata}}, see the examples.
##'
##'
##' @references \url{http://www.stata.com/help.cgi?schemes}
View
@@ -21,7 +21,7 @@
themes and scales, as well as defaults specific to
different graph types (which ggplot does not support).
These themes should be used in conjunction with
- \code{\link{stata_colour_scale}}, see the examples.
+ \code{\link{scale_colour_stata}}, see the examples.
}
\examples{
dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
@@ -45,7 +45,9 @@ q1mono <- (qplot(carat, price, shape=clarity, color=clarity,
(q2 + theme_stata("s1color"))
## s1rcolor
(q1 + theme_stata("s1rcolor") + scale_colour_stata("s1rcolor"))
-(q2 + theme_stata("s1rcolor"))
+(qplot(carat, price, colour="white", data=dsamp)
+ + facet_wrap(~ clarity)
+ + ggtitle("Diamonds"))
## s1mono
(q1mono + theme_stata("s1mono") + scale_colour_stata("mono"))
(q2 + theme_stata("s1mono"))

0 comments on commit b29965a

Please sign in to comment.