plot 6 implementation
tweak plot3--add ddply simplification