Skip to content

Commit b524b77

Browse files
committed
demo PCA plot_scores
1 parent 5ceea0e commit b524b77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/PDL/Demos/Stats.pm

+6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ $data = qsort random 10, 5; # 10 obs on 5 variables
5959
# Here we can see that very nearly all the variance is in the first component.
6060
|],
6161

62+
[act => q|
63+
# From that PCA we can plot the original vs PCA-transformed scores
64+
# along the first two components
65+
$data->plot_scores( $r{eigenvector}, {win=>$w} );
66+
|],
67+
6268
[comment => q|
6369
This concludes the demo.
6470

0 commit comments

Comments
 (0)