Added function to plot by species