fixing #280: adding subset to bargraph()