watex.view.ExPlot.plotpairwisecomparison#

ExPlot.plotpairwisecomparison(corr='pearson', pkg='sns', **kws)[source]#

Create pairwise comparizons between features.

Plots shows a [‘pearson’|’spearman’|’covariance’] correlation.

Parameters:
  • corr (str, ['pearson'|'spearman'|'covariance']) – Method of correlation to perform. Note that the ‘person’ and ‘covariance’ don’t support string value. If such kind of data is given, turn the corr to spearman. default is pearson

  • pkg (str, Optional,) – kind or library to use for visualization. can be [‘sns’|’yb’] for ‘seaborn’ or ‘yellowbrick’ respectively. default is sns.

  • kws (dict,) – Additional keywords arguments are passed down to yellowbrick.Rand2D and seaborn.heatmap

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.plotpairwisecomparison(fmt='.2f', corr='spearman', pkg ='yb',
                             annot=True,
                             cmap='RdBu_r',
                             vmin=-1,
                             vmax=1 )
... <'ExPlot':xname='sfi', yname='ohmS' , tname='flow'>