not sure about this. I used the line or barplot class as template.  I'm not really familiar with  subplotting