import numpy as np
import pandas as pd
from plotnine import (
ggplot,
aes,
geom_boxplot,
geom_jitter,
scale_x_discrete,
coord_flip,
)
from plotnine.data import pageviews plotnine.geom_boxplot
geom_boxplot(mapping=None, data=None, **kwargs)Box and whiskers plot
{usage}
Parameters
width : float = None-
Box width. If
None, the width is set to90%of the resolution of the data. Note that if the stat has a width parameter, that takes precedence over this one. outlier_alpha : float = 1-
Transparency of the outlier points.
outlier_color : str | tuple = None-
Color of the outlier points.
outlier_shape : str = "o"-
Shape of the outlier points. An empty string hides the outliers.
outlier_size : float = 1.5-
Size of the outlier points.
outlier_stroke : float = 0.5-
Stroke-size of the outlier points.
notch : bool = False-
Whether the boxes should have a notch.
varwidth : bool = False-
If
True, boxes are drawn with widths proportional to the square-roots of the number of observations in the groups. notchwidth : float = 0.5-
Width of notch relative to the body width.
fatten : float = 2-
A multiplicative factor used to increase the size of the middle bar across the box.
See Also
stat_boxplot-
The default
statfor thisgeom.



