watex.view.ExPlot.plotpairgrid#

ExPlot.plotpairgrid(xname=None, yname=None, vars=None, **kwd)[source]#

Create a pair grid.

Is a matrix of columns and kernel density estimations. To color by a columns from a dataframe, use ‘hue’ parameter.

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.

  • vars (list, str) – list of items in the dataframe columns. Raise an error if items dont exist in the dataframe columns.

  • kws (dict,) – Other keyword arguments are passed down to `seaborn.joinplot`_ .

Returns:

``self``

Return type:

ExPlot instance and returns self for 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.plotpairgrid (vars = ['magnitude', 'power', 'ohmS'] )
... <'ExPlot':xname=(None,), yname=None , tname='flow'>