plotnine.stat_bindot
stat_bindot(mapping=None, data=None, **kwargs)Binning for a dot plot
{usage}
Parameters
bins : int = None-
Number of bins. Overridden by binwidth. If
None, a number is computed using the freedman-diaconis method. binwidth : float = None-
When
method="dotdensity", this specifies the maximum binwidth. Whenmethod="histodot", this specifies the binwidth. This supersedes thebins. origin : float = None-
When
method="histodot", origin of the first bin. width : float = 0.9-
When
binaxis="y", the spacing of the dotstacks for dodging. binaxis : Literal["x", "y"] = "x"-
Axis to bin along.
method : Literal["dotdensity", "histodot"] = "dotdensity"-
Whether to do dot-density binning or fixed widths binning.
binpositions : Literal["all", "bygroup"] = "bygroup"-
Position of the bins when
method="dotdensity". The value -bygroup- positions of the bins for each group are determined separately. -all- positions of the bins are determined with all data taken together. This aligns the dots stacks across multiple groups. drop : bool = False-
If
True, remove all bins with zero counts. right : bool = True-
When
method="histodot",Truemeans include right edge of the bins and ifFalsethe left edge is included. breaks : FloatArray = None-
Bin boundaries for
method="histodot". This supersedes thebinwidthandbins.
See Also
geom_dotplot-
The default
geomfor thisstat. stat_bin