Make function plots work with JuliaStats/DataFrames.jl#520. Fixes #249.