Linear Regression Plot

dai.linear_regression_plot(
  dataset,
  x_variable_name,
  y_variable_name,
  mark = "point",
  render = TRUE,
  progress = getOption("dai.progress", TRUE)
)

Arguments

dataset

DAIFrame representing the dataset.

x_variable_name

The name of the x variable.

y_variable_name

The name of the y variable.

mark

Either point or square.

render

Whether to directly render the plot or not

progress

Whether to display a progress bar.

Value

JSON of the plot in Vega format if render=FALSE.