Distribution Plot

dai.distribution_plot(
  dataset,
  x_variable_name,
  y_variable_name = NULL,
  subtype = "probability_plot",
  distribution = "normal",
  mark = "point",
  transpose = FALSE,
  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 for a quantile plot.

subtype

Either probability_plot or quantile_plot.

distribution

Either normal or uniform.

mark

Either point or square.

transpose

Whether to transpose the plot.

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.