The AEdotplot
function constructs a
display of the most frequently occurring AEs (Adverse Events) in the
active arm of a clinical study.
The latex
method takes the
incidence panel and the relative risk panel from the
AEdotplot
and places them in a 'LaTeX' tabular environment
along with the numerical table of counts, percents, and relative risks.
The msWord
method takes the
incidence panel and the relative risk panel from the
AEdotplot
and places them in an 'MS Word' table
along with the numerical table of counts, percents, and relative risks.
# S3 method for AEdotplot
latex(object, figPrefix = first.word(deparse(substitute(object))),
rowlabel="Most Frequent On-Therapy Adverse Events",
device="pdf", ...)# S3 method for AEdotplot
msWord(object, figPrefix = first.word(deparse(substitute(object))),
device="png",
height.panel=.25, height.x.axis=.45,
width.left=2, width.right=1.5,
height.key=height.panel,
width.dataobject=.7,
rowlabel="Adverse Event", width.rowname=2,
...)
# S3 method for AEdotplot
microplot(object, figPrefix, width.left=2, width.right=1.5,
height.panel=.2, height.x.axis=.45, ...)
An "AEdotplot"
object as constructed by the AEdotplot
.
Beginning characters for names of the sequence of generated graphics
files.
The 'latex' macro \includegraphics
requires that there be no
"."
in the filename basename. We replace all "."
in
the figPrefix
by "-"
.
Forwarded to microplot
.
See
microplot
.
See msWord
.
See latex.trellis
or msWord
.
Additional arguments to microplot.AEdotplot
are forwarded to the
microplot.trellis
method. Additional arguments to
latex.AEdotplot
are forwarded to microplot.AEdotplot
and to
latex
.
Additional arguments to msWord.AEdotplot
are forwarded to microplot.AEdotplot
and to
msWord
.
For latex.AEdotplot
, the "latex"
object giving the
pathname of the .tex
file containing
the 'LaTeX' tabular environment constructed by the latex
function.
For msWord.AEdotplot
, the "msWordFilename"
object giving the
pathname of the .docx
file containing
the generated table constructed by the msWord.microplotMatrix
function which in turn uses functions in the flextable
package.
The microplot.AEdotplot
method returns a list containing the
"microplotMatrix"
and the data.frame.
The microplot.AEdotplot
function does most of the work, taking apart the
"AEdotplot"
object and constructing from it the set of graphics files
identified in a "microplotMatrix"
object and collecting the
numerical data into a data.frame. The "microplotMatrix"
and the
data.frame are returned.
The latex
and msWord
methods call the
microplot
method
and then the latex
or msWord
generic.
The msWord
method has more arguments than the latex
method because it doesn't pick up
the height and width dimensions from the graphics (.png
) files.
See AEdotplot
and latex
for
details on the operation of the latex
method.
# NOT RUN {
## See
## demo("AEdotplot", package="microplot", ask=TRUE)
# }
Run the code above in your browser using DataLab