Icon

Regression Formula in Scatter Plot

This workflow shows how we can extract the regression coefficients from a Linear Regression Learner, generate a string for the formula, and use it as subtitle in a scatterplot.

100 rowsRandom dataFormula aschart subtitlevia flow varNode 4Variable nameto rowidOnly coeff.x and interceptto variableCreateformulaorigin=dataorigin=predPredict yno ycolorby originEmpty Table Creator Column Expressions Scatter Plot Linear RegressionLearner RowID Column Filter Transpose Table Rowto Variable String Manipulation(Variable) ConstantValue Column ConstantValue Column RegressionPredictor Column Filter Concatenate Color Manager 100 rowsRandom dataFormula aschart subtitlevia flow varNode 4Variable nameto rowidOnly coeff.x and interceptto variableCreateformulaorigin=dataorigin=predPredict yno ycolorby originEmpty Table Creator Column Expressions Scatter Plot Linear RegressionLearner RowID Column Filter Transpose Table Rowto Variable String Manipulation(Variable) ConstantValue Column ConstantValue Column RegressionPredictor Column Filter Concatenate Color Manager

Nodes

Extensions

Links