lagged_scatter_plot

lagged_scatter_plot(
  object,
  x_name = "x",
  y_name = "y",
  which = c("global", "max"),
  hex = FALSE
)

Arguments

object

a lagged_scatter_result class object.

x_name

x_name

y_name

y_name.

which

global and max

hex

TRUE or not

Value

A ggplot2 object.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

data("object", package = "laggedcor")
lagged_scatter_plot(
  object = object,
  x_name = "Step",
  y_name = "HR",
  hex = TRUE, 
  which = "max"
)
#> Warning: The dot-dot notation (`..count..`) was deprecated in ggplot2 3.4.0.
#>  Please use `after_stat(count)` instead.
#>  The deprecated feature was likely used in the laggedcor package.
#>   Please report the issue to the authors.
#> `geom_smooth()` using formula = 'y ~ x'


lagged_scatter_plot(
  object = object,
  x_name = "Step",
  y_name = "HR",
  hex = TRUE, 
  which = "global"
)
#> `geom_smooth()` using formula = 'y ~ x'