watex.view.ExPlot.plotbv#
- ExPlot.plotbv(xname=None, yname=None, kind='box', **kwd)[source]#
Visualize distributions using the box, boxen or violin plots.
- Parameters:
xname (vectors or keys in data) – Variables that specify positions on the x and y axes. Both are the column names to consider. Shoud be items in the dataframe columns. Raise an error if elements do not exist.
yname (vectors or keys in data) – Variables that specify positions on the x and y axes. Both are the column names to consider. Shoud be items in the dataframe columns. Raise an error if elements do not exist.
kind (str) – style of the plot. Can be [‘box’|’boxen’|’violin’]. default is
boxkwd (dict,) – Other keyword arguments are passed down to seaborn.boxplot .
- Returns:
``self`` (ExPlot instance and returns
selffor easy)method chaining.
Example
>>> from watex.datasets import fetch_data >>> from watex.view import ExPlot >>> data = fetch_data ('bagoue original').get('data=dfy1') >>> p= ExPlot(tname='flow').fit(data) >>> p.plotbv(xname='flow', yname='sfi', kind='violin')