Learn R Programming

EMOTIONS (version 1.0)

PlotWeightLac: Plot the actual and predicted daily milk production obtained by the ensemble model

Description

Plot the actual and predicted daily milk production obtained by the ensemble model

Usage

PlotWeightLac(
  data,
  ID,
  trait,
  metric,
  dim,
  col = c("red", "blue"),
  point_size = 2,
  line_size = 1,
  axis_text_size = 15,
  axis_title_size = 15
)

Value

A plot showing the actual and predicted daily milk production across the days in milk

Arguments

data

The object generated by the LacCurveFit function

ID

The ID of the individual whose daily milking records will be plotted

trait

The name of the column containing the daily milking records

metric

The name of the strategy used to obtain the predicted values through the ensemble model

dim

The name of the column containing the days in milk (DIM) records

col

A vector defining the colors for the actual and predicted values

point_size

Numeric value indicating the size of the observed data points in the plot

line_size

Numeric value indicating the thickness of the regression line

axis_text_size

Numeric value defining the font size of the axis tick labels

axis_title_size

Numeric value defining the font size of the axis titles