lagged_alignment_plot

lagged_alignment_plot(
  object,
  x_color = "#631879FF",
  y_color = "#E377C2FF",
  x_name = "x",
  y_name = "y",
  which = c("global", "max"),
  x_limit = c(1, 1000),
  non_matched_point_size = 0.1,
  y_point_size = 1,
  x_point_size = 3,
  integrated = FALSE,
  add_connect_line = FALSE,
  add_point = FALSE,
  time_gap = 4
)

Arguments

object

a lagged_scatter_result class object.

x_color

x_color

y_color

y_color

x_name

x_name

y_name

y_name

which

global or maz

x_limit

x_limit

non_matched_point_size

non_matched_point_size

y_point_size

y_point_size

x_point_size

x_point_size

integrated

integrated

add_connect_line

add_connect_line

add_point

add_point

time_gap

time_gap in x axis.

Value

A ggplot2 object.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

data("object", package = "laggedcor")

lagged_alignment_plot(object = object,
                      x_limit = c(1, 1000))

lagged_alignment_plot(object = object,
                      x_limit = c(1, 10000),
                      time_gap = 10)


lagged_alignment_plot(
  object = object,
  x_limit = c(1, 100),
  time_gap = 1,
  add_point = TRUE,
  x_point_size = 1,
  y_point_size = 1,
  integrated = TRUE,
  add_connect_line = TRUE
)
#> Warning: Removed 91947 rows containing missing values (`geom_segment()`).


lagged_alignment_plot(
  object = object,
  x_limit = c(1, 100),
  time_gap = 1,
  add_point = TRUE,
  x_point_size = 1,
  y_point_size = 1,
  integrated = FALSE
)