Skip to content

Commit

Permalink
dotplot: more information about binning
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Jan 24, 2012
1 parent 8d09896 commit dbf47a1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions R/geom-dotplot.r
@@ -1,5 +1,16 @@
#' Dot plot
#'
#' In a dot plot, the width of a dot corresponds to the bin width
#' (or maximum width, depending on the binning algorithm), and dots are
#' stacked, with each dot representing one observation.
#'
#' With dot-density binning, the bin positions are determined by the data and
#' \code{binwidth}, which is the maximum width of each bin. See Wilkinson
#' (1999) for details on the dot-density binning algorithm.
#'
#' With histodot binning, the bins have fixed positions and fixed widths, much
#' like a histogram.
#'
#' @inheritParams geom_point
#' @param binaxis which axis to bin along "x" (default) or "y"
#' @param method "dotdensity" (default) for dot-density binning, or
Expand All @@ -17,6 +28,10 @@
#' just touch. Use smaller values for closer, overlapping dots.
#' @param dotsize The diameter of the dots relative to \code{binwidth}, default 1.
#' @export
#'
#' @references Wilkinson, L. (1999) Dot plots. The American Statistician,
#' 53(3), 276-281.
#'
#' @examples
#'
#' ggplot(mtcars, aes(x = mpg)) + geom_dotplot()
Expand Down

0 comments on commit dbf47a1

Please sign in to comment.