report.STA | R Documentation |
pdf reports will be created containing a summary of the results of the fitted model(s). For all selected trails and traits a separate pdf file will be generated. Also a .tex file and a folder containing figures will be created for each report to enable easy modifying of the report.
## S3 method for class 'STA'
report(
x,
...,
trials = NULL,
traits = NULL,
descending = TRUE,
outfile = NULL,
what = c("fixed", "random")
)
x |
An object of class STA. |
... |
Further arguments passed to the report function. |
trials |
A character vector indicating the trials to report. If
|
traits |
A character vector indicating the traits to report. If
|
descending |
Should the trait be ordered in descending order? Set to
|
outfile |
A character string, the name and location of the output .pdf
and .tex file for the report. If |
what |
A character vector indicating whether the fitted model with genotype as fixed or genotype as random factor should be reported. By default all fitted models in the STA object are reported. |
This function uses pdflatex to create a pdf report. For it to run correctly an installation of LaTeX is required. Checking for this is done with Sys.which("pdflatex").
A pdf report and the .tex file and figures folder that can be used to recreate the report.
Other functions for STA objects:
STAtoCross()
,
STAtoTD()
,
plot.STA()
,
summary.STA()
## Fit model using lme4.
modLme <- fitTD(TD = TDHeat05,
design = "ibd",
traits = "yield",
engine = "lme4")
## Create a pdf report summarizing the results for the model with genotype
## as fixed factor.
report(modLme,
outfile = tempfile(fileext = ".pdf"),
what = "fixed")
## Create two pdf report summarizing the results for the model with genotype
## as fixed factor and for the model with genotype as random factor. Order
## the results in ascending order.
report(modLme,
outfile = tempfile(fileext = ".pdf"),
descending = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.