Description Usage Arguments Value Author(s) See Also Examples
Generate basic box plot and histogram for the yield data
1 | Yield_plot(adjusted_weight, Treatment, ...)
|
adjusted_weight |
The value is yield (numeric vector), whcih is adjusted to 13 percent moisture |
Treatment |
The treatment (categorical vector) for each plot |
... |
Let function have more flexibility |
Plot
Helen Lin
adjusted_weight
, hist
, and boxplot
1 2 3 4 5 6 7 8 9 | test <- data.frame("Plot_ID" = 1:3,
"Treatment" = c("A","B","C"),
"weight" = c(5.55,5.87,6.5,6.18,5.97,6.5),
"moisture"=c(12.1,12.3,12.4,12.3,12.4,12.2),
stringsAsFactors = FALSE)
test$adj_weight <- adjusted_weight(test$weight, test$moisture, 13, 60)
Yield_plot(test$adj_weight, test$Treatment)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.