Fixed plotPlaid to avoid clash between cap variables.
Added cap checks to test-filter.R and results.