added sanity check for function value. if all are NA of Inf, ggplot will fail; now the other plots go through and the value plot is avoided with a warning.