Bases: object
Plots the reduced space from a decomposed dataset. Does not perform any reductions of its own
Plot the results of a decomposition visualization
Parameters: | reduced_space : pandas.DataFrame
components_ : pandas.DataFrame
explained_variance_ratio_ : pandas.Series
feature_renamer : function, optional
groupby : mapping function | dict, optional
singles : pandas.DataFrame, optional
pooled : pandas.DataFrame, optional
outliers : pandas.DataFrame, optional
featurewise : bool, optional
order : list-like, optional
violinplot_kws : dict, optional
data_type : ‘expression’ | ‘splicing’, optional
label_to_color : dict, optional
label_to_marker : dict, optional
scale_by_variance : bool, optional
{x,y}_pc : str, optional
n_vectors : int, optional
distance : ‘L1’ | ‘L2’, optional
n_top_pc_features : int, optional
max_char_width : int, optional
|
---|
Plot reduced space
Figures can be saved with:
dv.plot() dv.fig_reduced.savefig(‘decomposition.pdf’)
Parameters: | ax : matplotlib.axes.Axes object, optional
title : str, optional
plot_violins : bool, optional
show_point_labels : bool, optional
show_vectors : bool, optional
show_vector_labels : bool, optional
markersize : int, optional
legend : bool, optional
bokeh : bool, optional
metadata : pandas.DataFrame, optional
plot_loadings : ‘heatmap’ | ‘scatter’
n_components : int, optional
|
---|---|
Returns: | self : DecompositionViz |
If the reducer is a form of PCA, then plot the explained variance ratio by the components.
Plot the loadings of each feature in the top principal components
Creates a heatmap of the top features contributing to the first few principal components, sorted by the features’ contribution to PC1.
Parameters: | n_features : int, optional
n_components : int, optional
|
---|
Plot PCA scatterplot
Parameters: | groupby : groupby
label_to_color : dict
label_to_marker : dict
title : str
show_vectors : bool
show_vector_labels : bool
show_point_labels : bool
markersize : int
text_group : list of str
three_d : bool
|
---|---|
Returns: | For each vector in data: x, y, marker, distance |