Obtains a scatterplot for the given two varibles.

dai.scatterplot(
  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

Name of the X variable.

y_variable_name

Name of the Y variable.

mark

Default is "point" (alternative is "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.