Added code to ignore NA values in data during plotting.