Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: return slope coefficient and R2 statistic for LinearAnalysis #460

Open
floswald opened this issue May 11, 2023 · 0 comments
Open

FR: return slope coefficient and R2 statistic for LinearAnalysis #460

floswald opened this issue May 11, 2023 · 0 comments

Comments

@floswald
Copy link

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

  • 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.
@floswald floswald changed the title return slope coefficient and R2 statistic for LinearAnalysis FR: return slope coefficient and R2 statistic for LinearAnalysis May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant