DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


SavePlotAsImage

Declaration: FrmPCA.SavePlotAsImage (FName: string; PlotType: integer; BlkWhite: boolean): integer;
The method SavePlotAsImage saves the graphics shown in plot PlotType to a file specified by the filename FName.

The parameter PlotType controls which diagram is saved:

1 ... Summary
2 ... Scores Plot
3 ... Score/Score Plot
4 ... Loadings Plot
5 ... Loading/Loading Plot
6 ... Bi-Plot

The parameter BlkWhite controls whether the graphics is stored in black & white or using colors.

The function returns the following error codes:

 0 .... everything OK
-1 ... invalid file extension (BMP, PNG and JPG are supported)
-2 ... cannot store the file (disk full or write protected)