You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often want to show a scatter plot with a regression line, next to which I want to print the slope coefficient of the line (or maybe the entire equation like in this Plots.jl solution). Of course I imagine one can use annotation also in the Makie plots, but it would be nice if the placement of the equation would be automated.
Proposed solution
add a kw equation = false to linear. if equation = true, return beta from y = a + beta x + e.
the tricky part is to find a suitable location for the annotation on the scatter plot.
The text was updated successfully, but these errors were encountered:
floswald
changed the title
return slope coefficient and R2 statistic for LinearAnalysis
FR: return slope coefficient and R2 statistic for LinearAnalysis
May 11, 2023
Problem description
I often want to show a scatter plot with a regression line, next to which I want to print the slope coefficient of the line (or maybe the entire equation like in this Plots.jl solution). Of course I imagine one can use annotation also in the Makie plots, but it would be nice if the placement of the equation would be automated.
Proposed solution
equation = false
tolinear
. ifequation = true
, returnbeta
fromy = a + beta x + e
.The text was updated successfully, but these errors were encountered: