plot.mscmt {MSCMT} | R Documentation |
Plotting Results of MSCMT
Description
plot.mscmt
plots results of mscmt
.
Usage
## S3 method for class 'mscmt'
plot(
x,
what,
type = c("gaps", "comparison", "placebo.gaps", "placebo.data"),
treatment.time,
zero.line = TRUE,
ylab,
xlab = "Date",
main,
sub,
col,
lty,
lwd,
legend = TRUE,
bw = FALSE,
...
)
Arguments
x |
An object of class |
what |
A character scalar. Name of the variable to be plotted. If missing, the (first) dependent variable will be used. |
type |
A character scalar denoting the type of the plot containing
either |
treatment.time |
An optional numerical scalar. If not missing, a
vertical dotted line at the given point in time is included in the plot.
|
zero.line |
A logical scalar. If |
ylab |
Optional label for the y-axis, automatically generated if missing. |
xlab |
Optional label for the x-axis, defaults to |
main |
Optional main title for the plot, automatically generated if missing. |
sub |
Optional subtitle for the plot. If missing, the subtitle is
generated automatically for |
col |
Optional character vector with length corresponding to the number of units. Contains the colours for the different units, automatically generated if missing. |
lty |
Optional numerical vector with length corresponding to the number of units. Contains the line types for the different units, automatically generated if missing. |
lwd |
Optional numerical vector with length corresponding to the number of units. Contains the line widths for the different units, automatically generated if missing. |
legend |
A logical scalar. If |
bw |
A logical scalar. If |
... |
Further optional parameters for the underlying
|
Details
A unified basic plot function for gaps plots, comparison of treated and
synthetic values, as well as plots for placebo studies.
Consider using ggplot.mscmt
instead, which is the preferred
plot method and has more functionality than plot.mscmt
.
Value
Nothing useful (function is called for its side effects).