Fixed variance plot legend.
Minor correction - missing NA value in output for NA lines.