Learn R Programming

EventStudy (version 0.36)

pointwiseCARPlot: Pointwise Cumulative Abnormal Return Plot

Description

Pointwise cumulative abnormal return plots

Usage

pointwiseCARPlot(df, firm = NULL, xlab = "",
  ylab = "pointwise Cumulative Abnormal Returns", facetVar = NULL,
  ncol = 4)

Arguments

df

data.frame with abnormal return in long format;

firm

set this parameter if just one firm should be plotted

xlab

x-axis label

ylab

y-axis label

facetVar

should each firm get its own plot. You may plot each firm in an own plot or by each group. (Default: NULL, available: Group and Firm)

ncol

number of facet columns

Value

a ggplot2 object

Examples

Run this code
# NOT RUN {
# plot abnormal returns in one plot
arPlot(resultParser)

# plot abnormal returns by group
arPlot(resultParser, facetVar = "Group")

This function must be revised
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab