Yield_plot: Basic plots for yield

Description Usage Arguments Value Author(s) See Also Examples

Description

Generate basic box plot and histogram for the yield data

Usage

1

Arguments

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

Value

Plot

Author(s)

Helen Lin

See Also

adjusted_weight, hist, and boxplot

Examples

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)

henganl2/Yield documentation built on May 8, 2019, 1:36 a.m.