Plotting with plotly

plotting.boxplot(df, col, save=False, output_folder='', outputfilename_prefix='')

Generating plotly boxplot. The hover_name is “clusterName”.

Parameters:

df: pd.DataFrame

NS-Forest results containing “clusterName” and col columns.

col: str

Column in df to create the boxplot from.

save: bool | str (default: False)

Whether to save plot. If string, choose the type of file to save as (“png”, “jpeg”, “webp”, “svg”, “pdf”).

output_folder: str (default: “”)

Output folder for output files.

outputfilename_prefix: str (default: “”)

Prefix for all output files.

Returns:

fig: plotly.graph_objects.Figure

Boxplot of col values.

plotting.scatter_w_clusterSize(df, col, save=False, output_folder='', outputfilename_prefix='')

Generating plotly scatterplot with “clusterSize”. The hover_name is “clusterName”.

Parameters:

df: pd.DataFrame

NS-Forest results containing “clusterName”, “clusterSize”, and col columns.

col: str

Column in df to plot against “clusterSize”.

save: bool | str (default: False)

Whether to save plot. If string, choose the type of file to save as (“png”, “jpeg”, “webp”, “svg”, “pdf”).

output_folder: str (default: “”)

Output folder for output files.

outputfilename_prefix: str (default: “”)

Prefix for all output files.

Returns:

fig: plotly.graph_objects.Figure

Scatterplot of col values against clusterSize.