Skip to content

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

@floswald

Description

@floswald

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions