repo.strd: Automatic report for a strip plot design

View source: R/repo_strd.R

repo.strdR Documentation

Automatic report for a strip plot design

Description

Produces an automatic report for selected traits in an experiment with a strip plot design.

Usage

repo.strd(
  traits,
  rowf,
  colf,
  rep,
  dfr,
  title = "Automatic report for a strip plot design",
  subtitle = NULL,
  author = "International Potato Center",
  format = c("html", "word", "pdf"),
  server = FALSE,
  server_dir_name = "directory",
  server_file_name = "filename"
)

Arguments

traits

The traits to analize.

rowf

The row factor.

colf

The column factor.

rep

The replications.

dfr

The name of the data frame.

title

Report title.

subtitle

Report subtitle.

author

Report author.

format

The output file format for the report, "html" by default. Other options are "word" and "pdf".

server

Logical. If "FALSE" works with local machines. Otherwise works in server environments.

server_dir_name

If "server = TRUE", this is the directory name in the server.

server_file_name

If "server = TRUE", this is the file name in the server.

Details

It fits a linear model for a strip plot design and explains the results.

Value

It returns an explanation about the strip plot design fitted model.

Author(s)

Raul Eyzaguirre.

Examples

# Create design
rowf <- paste0("rf", 1:3)
colf <- paste0("cf", 1:4)
design <- cr.strd(rowf, colf, 3)$book
# Some random data
design$yield <- rnorm(36, 10)
repo.strd("yield", "A", "B", "block", design)

reyzaguirre/pepa documentation built on April 20, 2024, 3:50 a.m.