watex.view.ExPlot.plotparallelcoords#
- ExPlot.plotparallelcoords(classes=None, pkg='pd', rxlabel=45, **kwd)[source]#
Use parallel coordinates in multivariates for clustering visualization
- Parameters:
classes (list, default: None) –
a list of class names for the legend The class labels for each class in y, ordered by sorted class index. These names act as a label encoder for the legend, identifying integer classes or renaming string labels. If omitted, the class labels will be taken from the unique values in y.
Note that the length of this list must match the number of unique values in y, otherwise an exception is raised.
pkg (str, Optional,) – kind or library to use for visualization. can be [‘sns’|’pd’] for ‘yellowbrick’ or ‘pandas’ respectively. default is
pd.rxlabel (int, default is
45) – rotate the xlabel when using pkg is set topd.kws (dict,) – Additional keywords arguments are passed down to
yellowbrick.ParallelCoordinatesandpandas.plotting.parallel_coordinates()
- Returns:
``self``
- Return type:
ExPlot instance and returns
selffor easy method chaining.
Examples
>>> from watex.datasets import fetch_data >>> from watex.view import ExPlot >>> data =fetch_data('original data').get('data=dfy1') >>> p = ExPlot (tname ='flow').fit(data) >>> p.plotparallelcoords(pkg='yb') ... <'ExPlot':xname=None, yname=None , tname='flow'>