Skip to contents

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,
  ...
)

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.

Value

A ggplot object.

Author

Johan Aparicio [aut]

Examples

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")
#> Warning: Removed 36 rows containing non-finite outside the scale range
#> (`stat_boxplot()`).