pydiodon.plot_coa¶
- pydiodon.plot_coa(Y_r, Y_c, axis_1=1, axis_2=2, col_dsize=20, row_dsize=20, row_col='blue', col_col='red', rownames=[], colnames=[], title=None, x11=True, plotfile=None, fmt='png')[source]¶
Scatter plot of the result of a Correspondence Analysis
- Parameters
- Y_ra 2D numpy array
the principal components for the rows
- Y_ca 2D numpy array
the principal components for the columns
- axis_1an integer
the first axis of the scatter plot (starting at 1)
- axis_2an integer
the second axis of the scatter plot (starting at 1)
- col_dsizean integer
- dot size for dots associated with columnsdefault value is 20
- row_dsizean integer
- dot size for dots associated with rowsdefault value is 20
- row_cola string
- color for dots associated with rowsdefault value is blue
- col_cola string
- color for dots associated with columnsdefault value is red
- rownamesa list
- list of names of rows to be plotteddefault value is [] (no name is plotted)
- colnamesa list
- list of names of columns to be plotteddefalt value is [] (no name is plotted)
- titlea string
- the title of the plotdefault value is None (no title)
- x11a boolean
- whether to display the plot on the screendefault value is True (plot displayed)
- plotfilea string
- the name of the file where to save the plotdefault value is None (plot not saved)
- fmta string
- format of the file where the plot is savedpossible values are : png, eps, pdfdefault value is png
- Returns
- a scatter plot
Notes
The numbering of the axis in calling the function is natural, and bagins at 1. It is translated to start at 0 as in python in the function itself.
af, 25/10/2017, revised 22.10.26