% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_ps_psweights.R
\name{create_love_plot}
\alias{create_love_plot}
\title{Create a balance (Love) plot comparing standardized differences}
\usage{
create_love_plot(
  variable_names,
  crude_std_diff,
  adjusted_std_diff,
  crude_label,
  adjusted_label,
  title,
  output_path,
  colors = NULL,
  shapes = NULL,
  use_absolute = FALSE
)
}
\arguments{
\item{variable_names}{Character vector of variable names}

\item{crude_std_diff}{Numeric vector of crude/pre standardized differences}

\item{adjusted_std_diff}{Numeric vector of adjusted/post standardized differences}

\item{crude_label}{Label for crude/pre group (e.g. "Unweighted", "Pre-matching", "Crude")}

\item{adjusted_label}{Label for adjusted/post group (e.g. "Weighted", "Post-matching")}

\item{title}{Plot title}

\item{output_path}{Full file path for saved plot}

\item{colors}{Named character vector of length 2 with crude_label and adjusted_label as names}

\item{shapes}{Optional named integer vector of length 2 with crude_label and
adjusted_label as names giving ggplot2 shape codes (e.g., 16 = filled circle,
17 = filled triangle). If NULL, ggplot2 default shapes are used.}

\item{use_absolute}{Logical. Plot absolute values of std diff? (default FALSE)}
}
\value{
Invisibly returns a \code{ggplot} object, or \code{invisible(NULL)}
if \pkg{ggplot2} is unavailable or no data remain after removing NAs.
}
\description{
Create a balance (Love) plot comparing standardized differences
}
\section{Side Effects}{

Saves the plot to \code{output_path} via \code{ggplot2::ggsave}.
}

\keyword{internal}
