In much research, one spends incalculable time exploring the data, and often one will plot the data and think 'my, that little piece there is interesting, i wonder where those weird points are coming from...' Well, this program allows you to actually select the original data directly from a plot. If you like your particular plot in 3d, use getProjectionDirs to acquire projection directions that provide you a similar plot in 2d.
This program shows a scatterplot of the data X (d x n) projected onto the directions given by projdirs, which is d x 2.
The program then allows you to select a contour in the projection, left mouse button to add a point to the contour, right to add the last point. It then closes the loop, and returns the orginal data that lie within the contour on the projection (again, given by the projdirs).