Learn R Programming

EMOTIONS (version 1.1)

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

Description

Plot the actual daily milk daily production and the predicted values 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 with the actual and predicted daily milk production across the days in milk

Arguments

data

The object generated by the LacCurveFit.

ID

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

trait

The name of the column containing daily milking records.

metric

The name of the strategy used obtained the predicted values through the ensemble model.

dim

The name of the column containing days in milk records

col

The colors of 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.