I just added support to PairPlots.jl for plotting a linear trend line:
pairplot(
table => (
# choose what kind of series you want in body and along diagonal
PairPlots.Scatter(),
PairPlots.MarginHist(),
# Add trend line
PairPlots.TrendLine(color=:red),
),
fullgrid=true
)
It just fits a linear trend line for now, but I can imagine extending this in future. We should probably add a package extension to support GLM directly.
You can test it out by running ] add PairPlots#main
. I’ll tag a new release the docs are built.
Let me know if there’s anything else I can add.