same solution using plyr pkg and base plots; not actual submission