plotting expected error and observed error rate as well