repo.trend: Report for repeated measures data

View source: R/repo_trend.R

repo.trendR Documentation

Report for repeated measures data

Description

Produce a ggplot2 graph for data over time.

Usage

repo.trend(
  response,
  treat,
  rep = NULL,
  eu,
  dap,
  dfr,
  average = TRUE,
  se = TRUE,
  title = "Automatic report for repeated measures data",
  subtitle = NULL,
  author = "International Potato Center",
  format = c("html", "word", "pdf"),
  server = FALSE,
  server_dir_name = "directory",
  server_file_name = "filename"
)

Arguments

response

Response variable.

treat

The treatments.

rep

The replications. Must be defined only for a RCBD.

eu

The experimental unit.

dap

Days after planting measuring time.

dfr

The name of the data frame.

average

If "TRUE", it computes average over experimental units (for subsampling data).

se

If "TRUE", standard errors are ploted.

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.

Value

It returns a ggplot2 graph for repeated measures data.

Author(s)

Raul Eyzaguirre.

Examples

repo.trend("yield", "treat", "rep", "plot", "date", trend.data)
repo.trend("yield", "treat", "rep", "plot", "date", trend.data, FALSE)
repo.trend("yield", "treat", "rep", "plot", "date", trend.data, FALSE, FALSE)

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