Learn R Programming

agriutilities (version 1.2.1)

plot.checkAgri: Plot an object of class checkAgri

Description

Create several plots for an object of class checkAgri

Usage

# S3 method for checkAgri
plot(
  x,
  type = c("connectivity", "missing", "boxplot"),
  axis_size = 15,
  text_size = 5,
  ...
)

Value

A ggplot object.

Arguments

x

An object inheriting from class checkAgri resulting of executing the function check_design_met()

type

A character string specifiying the type of plot. "connectivity", "missing" or "boxplot".

axis_size

Numeric input to define the axis size.

text_size

Numeric input to define the text size.

...

Further graphical parameters. For future improvements.

Author

Johan Aparicio [aut]

Examples

Run this code
library(agridat)
library(agriutilities)
data(besag.met)
dat <- besag.met
results <- check_design_met(
  data = dat,
  genotype = "gen",
  trial = "county",
  traits = c("yield"),
  rep = "rep",
  block = "block",
  col = "col",
  row = "row"
)
plot(results, type = "missing")
plot(results, type = "boxplot")

Run the code above in your browser using DataLab