Use argument variables to denote the numeric variables of interest. First one will be mapped on to the x-axis and the second one on to the y-axis.

plotScatterplot(
  object,
  variables,
  smooth = NULL,
  smooth_clr = NULL,
  smooth_method = NULL,
  smooth_se = NULL,
  smooth_span = NULL,
  pt_alpha = NULL,
  pt_clr = NULL,
  pt_size = NULL,
  verbose = NULL,
  of_sample = NA,
  ...
)

Arguments

object

An object of class spata2.

smooth

Logical. If TRUE, a loess fit is used to smooth the values.

smooth_clr

Character value. The color with which to display the smoothed model.

smooth_method

The smoothing method that will be used specified as a single character value (e.g. "lm", "glm", "gam", "loess").

smooth_se

Logical. If set to TRUE the confidence interval will be

smooth_span

Numeric value. Controls the degree of smoothing. Given to argument span of stats::loess().

pt_alpha

Numeric value. Specifies the degree of transparency of all points.

pt_clr

Character value. Specifies the color of all points.

pt_size

Numeric value. Specifies the size of all points.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

of_sample

This argument is currently inactive. It might be reactivated when spata-objects can store more than one sample.

...

Additional arguments given to ggplot2::geom_smooth().

Value

Returns a ggplot-object that can be additionally customized according to the rules of the ggplot2-framework.