coefficient plot code from dsparks

https://gist.github.com/dsparks/818976