Skip to content

Commit 4f987a2

Browse files
committed
rephrase stat_ellipse(type)
1 parent 7a746b2 commit 4f987a2

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

R/stat-ellipse.R

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ StatEllipse <- ggproto(
3636
#'
3737
#' @param level The level at which to draw an ellipse,
3838
#' or, if `type="euclid"`, the radius of the circle to be drawn.
39-
#' @param type The type of ellipse.
40-
#' The default `"t"` assumes a multivariate t-distribution, and
41-
#' `"norm"` assumes a multivariate normal distribution.
42-
#' `"euclid"` draws a circle with the radius equal to `level`,
43-
#' representing the euclidean distance from the center.
44-
#' This ellipse probably won't appear circular unless `coord_fixed()` is applied.
39+
#' @param type The type of ellipse. One of the following:
40+
#' * `"t"` assuming a multivariate t-distribution based on [MASS::cov.trob()].
41+
#' * `"norm"` assuming a multivariate normal distribution.
42+
#' * `"euclid"` drawing a circle with the radius equal to `level`,
43+
#' representing the euclidean distance from the center. This ellipse
44+
#' probably won't appear circular unless `coord_fixed()` is applied.
45+
#'
46+
#' The `"norm"` and `"euclid"` options are based on [stats::cov.wt()].
4547
#' @param segments The number of segments to be used in drawing the ellipse.
4648
#' @inheritParams layer
4749
#' @inheritParams geom_point

man/stat_ellipse.Rd

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)