stat_ellipse {ggpubr} R Documentation

Compute normal data ellipses

Description

Usage

stat_ellipse(
    data = NULL,
    color = NULL,
    level = 0.95,
    alpha = 0.6);

Arguments

data

The data to be displayed in this layer. There are three options: If NULL, the Default, the data Is inherited from the plot data As specified In the Call To ggplot(). A data.frame, Or other Object, will override the plot data. All objects will be fortified To produce a data frame. See fortify() For which variables will be created. A Function will be called With a Single argument, the plot data. The Return value must be a data.frame, And will be used As the layer data. A Function can be created from a formula (e.g. ~ head(.x, 10)).

color

-

level

The level at which to draw an ellipse, or, if type="euclid", the radius of the circle to be drawn. [as double]

alpha

[as double]

Details

Authors

ggpubr

Value

this function returns data object of type ggplotLayer.

clr value class

Examples


[Package ggpubr version 1.0.0.0 Index]