powered by
Plot abnormal returns in the event window of single or multiple firms.
arPlot( ResultParserObj, firm = NULL, window = NULL, xlab = "", ylab = "Abnormal Returns", alpha = 0.5, facetVar = NULL, ncol = 4, addAAR = F, xVar = "eventTime", yVar = "ar" )
a ggplot2 object
An object of class ResultParser
ResultParser
set this parameter if just a subset of firms should be plotted
filter event time window
x-axis label of the plot
y-axis label
alpha value
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)
number of facet columns
add aar line
x variable name
y variable name
if (FALSE) { # plot abnormal returns in one plot arPlot(resultParser) # plot abnormal returns by group arPlot(resultParser, facetVar = "Group") }
Run the code above in your browser using DataLab