Add PlotSelection interaction, and fix sample selection code