Skip to contents

A fct function

Usage

matching.plot(match.data, xvar, yvar, multi = F, plot.n = 1)

Arguments

match.data

An object returned from the matched.data function

xvar

A string naming the variable to go on the X axis

yvar

A string naming the variable to go on the Y axis

multi

Boolean value of whether the output will be part of a plotly subplot

plot.n

a number indicating the number plot it is for the title

Value

A plotly object of the sequence of matches performed on the data

Examples

#simulate some data
d <- create.sim.data(1,2)
#matching formula
f <- t~X1+X2
#create matched data object
M <- matched.data(f,d,"Propensity Score")

#create an animated plot of the matched data
matching.plot(M, "X1", "X2", FALSE)
#> Warning: Only one `frame` variable is allowed