Learn R Programming

qte (version 1.3.0)

plot.QTE: plot.QTE

Description

Plots a QTE Object

Usage

# S3 method for QTE
plot(x, plotate = FALSE, plot0 = FALSE,
  qtecol = "black", atecol = "black", col0 = "black", xlab = "tau",
  ylab = "QTE", legend = NULL, ontreated = FALSE, ylim = NULL,
  uselegend = FALSE, legendcol = NULL, legloc = "topright", ...)

Arguments

x

a QTE Object

plotate

Boolean whether or not to plot the ATE

plot0

Boolean whether to plot a line at 0

qtecol

Color for qte plot. Default "black"

atecol

Color for ate plot. Default "black"

col0

Color for 0 plot. Default "black"

xlab

Custom label for x-axis. Default "tau"

ylab

Custom label for y-axis. Default "QTE"

legend

Vector of strings to add to legend

ontreated

Boolean whether parameters are "on the treated group"

ylim

The ylim for the plot; if not passed, it will be automatically set based on the values that the QTE takes

uselegend

Boolean whether or not to print a legend

legendcol

Legend Colors for plotting

legloc

String location for the legend. Default "topright"

...

Other parameters to be passed to plot (e.g lwd)