-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
174 changed files
with
2,443 additions
and
2,443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
#' Position related aesthetics: x, y, xmin, xmax, ymin, ymax, xend, yend | ||
#' | ||
#' This page demonstrates the usage of a sub-group | ||
#' | ||
#' This page demonstrates the usage of a sub-group | ||
#' of aesthetics; x, y, xmin, xmax, ymin, ymax, xend, and yend. | ||
#' | ||
#' @name aes_position | ||
#' @aliases x y xmin xmax ymin ymax xend yend | ||
#' @aliases x y xmin xmax ymin ymax xend yend | ||
#' @examples | ||
#' | ||
#' # Generate data: means and standard errors of means for prices | ||
#' # for each type of cut | ||
#' dmod <- lm(price ~ cut, data = diamonds) | ||
#' cuts <- data.frame(cut = unique(diamonds$cut), predict(dmod, data.frame(cut = | ||
#' | ||
#' # Generate data: means and standard errors of means for prices | ||
#' # for each type of cut | ||
#' dmod <- lm(price ~ cut, data = diamonds) | ||
#' cuts <- data.frame(cut = unique(diamonds$cut), predict(dmod, data.frame(cut = | ||
#' unique(diamonds$cut)), se = TRUE)[c("fit", "se.fit")]) | ||
#' se <- ggplot(cuts, aes(x = cut, y = fit, ymin = fit - se.fit, | ||
#' ymax = fit + se.fit, colour = cut)) | ||
#' se <- ggplot(cuts, aes(x = cut, y = fit, ymin = fit - se.fit, | ||
#' ymax = fit + se.fit, colour = cut)) | ||
#' se + geom_pointrange() | ||
#' | ||
#' # Boxplot with precomputed statistics | ||
#' # generate sample data | ||
#' library(plyr) | ||
#' abc <- adply(matrix(rnorm(100), ncol = 5), 2, quantile, c(0, .25, .5, .75, 1)) | ||
#' b <- ggplot(abc, aes(x = X1, ymin = "0%", lower = "25%", middle = "50%", upper = "75%", ymax = "100%")) | ||
#' b <- ggplot(abc, aes(x = X1, ymin = "0%", lower = "25%", middle = "50%", upper = "75%", ymax = "100%")) | ||
#' b + geom_boxplot(stat = "identity") | ||
#' | ||
#' # Using annotate | ||
#' p <- ggplot(mtcars, aes(wt, mpg)) + geom_point() | ||
#' p + annotate("rect", xmin = 2, xmax = 3.5, ymin = 2, ymax = 25, fill = "dark grey", alpha = .5) | ||
#' | ||
#' | ||
#' # Geom_segment examples | ||
#' library(grid) | ||
#' p + geom_segment(aes(x = 2, y = 15, xend = 2, yend = 25), arrow = arrow(length = unit(0.5, "cm"))) | ||
#' p + geom_segment(aes(x = 2, y = 15, xend = 2, yend = 25), arrow = arrow(length = unit(0.5, "cm"))) | ||
#' p + geom_segment(aes(x = 2, y = 15, xend = 3, yend = 15), arrow = arrow(length = unit(0.5, "cm"))) | ||
#' p + geom_segment(aes(x = 5, y = 30, xend = 3.5, yend = 25), arrow = arrow(length = unit(0.5, "cm"))) | ||
#' | ||
#' # You can also use geom_segment to recreate plot(type = "h") : | ||
#' counts <- as.data.frame(table(x = rpois(100, 5))) | ||
#' counts$x <- as.numeric(as.character(counts$x)) | ||
#' # You can also use geom_segment to recreate plot(type = "h") : | ||
#' counts <- as.data.frame(table(x = rpois(100, 5))) | ||
#' counts$x <- as.numeric(as.character(counts$x)) | ||
#' with(counts, plot(x, Freq, type = "h", lwd = 10)) | ||
#' | ||
#' | ||
#' qplot(x, Freq, data = counts, geom = "segment", yend = 0, xend = x, size = I(10)) | ||
NULL |
Oops, something went wrong.
1244716
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means that all pending pull requests need to apply whitespace trimming to be compatible:
sed -i 's/ +$//' R/*.r
(GNUsed
). It might be easier to wait until all interesting PRs are merged.1244716
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.