R/seedsurvival.R

#' Seed survival dataset
#'
#' Seed survial data of three crops - groundnut, soybean and wheat stored for 15
#' years at combinations of three different moisture contents (3\%, 5\% and 7\%)
#' and temperatures (0 °C, 10 °C and 25 °C).
#'
#' \if{latex}{\figure{seedsurvival.pdf}}
#'
#' @format A data frame with 7 columns: \describe{ \item{crop}{The crop name.}
#'   \item{moistruecontent}{The moisture content (\%).} \item{temperature}{The
#'   temperature (°C).} \item{storageperiod}{The period of storage, i.e. the
#'   year at which viability was recorded.} \item{rep}{The replication.}
#'   \item{viabilitypercent}{The viability percentage value recorded.}
#'   \item{sampsize}{The sample size used for estimating viability percentage.}
#'   }
#'
#' @encoding UTF-8
#'
#' @examples
#'
#' # Load ggplot2 package
#' library(ggplot2)
#'
#' # Plot with seedsurvival dataset with ggplot2
#' ggplot(data = seedsurvival, aes(x = storageperiod, y = viabilitypercent)) +
#'   geom_point(aes(colour = crop), alpha = 0.5) +
#'   labs(x = "Storage period (years)", y = "Viability (%)") +
#'   facet_grid(crop + moistruecontent ~ temperature) +
#'   theme_bw() +
#'   theme(axis.text = element_text(colour = "black"),
#'         legend.title = element_blank())
#'
"seedsurvival"
aravind-j/viabilitymetrics documentation built on May 15, 2021, 9:10 a.m.