plot_car_distribution: Plot CAR Distribution

View source: R/cross_sectional.R

plot_car_distributionR Documentation

Plot CAR Distribution

Description

Create a histogram of CARs across events, optionally colored by group.

Usage

plot_car_distribution(
  task,
  car_window = NULL,
  bins = 30,
  by_group = FALSE,
  title = NULL
)

Arguments

task

A fitted EventStudyTask.

car_window

Optional two-element vector for CAR window.

bins

Number of histogram bins. Default 30.

by_group

Logical. If TRUE, color histogram by group.

title

Optional plot title.

Value

A ggplot2 object.

See Also

Other eventstudy-plots: es_colours, plot_diagnostics(), plot_event_study(), plot_stocks(), theme_eventstudy()


EventStudy documentation built on Oct. 31, 2026, 1:07 a.m.