Learn R Programming

EMOTIONS (version 1.1)

PlotMilkLoss: Plot the actual daily milk daily production and the predicted values highlighting the detected milk loss events

Description

Plot the actual daily milk daily production and the predicted values highlighting the detected milk loss events

Usage

PlotMilkLoss(
  data,
  ID,
  res.milkloss,
  MY_col,
  MY_pred,
  col = c("red", "blue", "darkgreen"),
  id_col = "ID"
)

Value

A plot with the actual daily milk daily production and the predicted values highlighting the detected milk loss events

Arguments

data

A data frame containing the observed and predicted daily milking records

ID

The ID of the individual that will have the daily milking records plotted

res.milkloss

The object with the output of milkloss_detect function

MY_col

The name of the column containing the observed milk yield

MY_pred

The name of the column containing the predicted milk yield

col

The colors of the actual, predicted values, and milk loss events. In this order

id_col

The name of the column containing the individual IDs