Add checkbox in plot to hide legend.