Creates plot of object with class 'dataSEM'. If input x is provided as list with more than one elements, the output plot is a grid with multiple plots.
# S3 method for dataSEM
plot(
x,
ts = "ts",
tens.up = "tens.up",
tens.low = "tens.low",
weight = "weight",
plot.tens = TRUE,
plot.weight = TRUE,
plot.legend = TRUE,
xlab = "timestamp",
plot.title,
color.tens = c("#00FFFF", "#008B8B"),
color.weight = "#EC382B",
...
)
object of class dataSEM (see details)
character specifying the column containing the time stamp (format must be numeric or POSIXct)
character specifying the column containing the measurements of the upper tensiometer
character specifying the column containing the measurements of the lower tensiometer
character specifying the column containing the weight
plot tensiometer values (TRUE/FALSE)
plot weight values (TRUE/FALSE)
plot legend (TRUE/FALSE)
lable for the x axis
character spezifying plot title. If empty no title will be added.
colors of the plotted tensiometer values
color of the plotted weight values
Graphical arguments (see par
). If plot.tens = T and plot.weight = T, lty only works for tensiometer values.
Object x can be: - class(x): "dataSEM" "data.frame" - class(x): "dataSEM" "data.table" - class(x): "dataSEM" (if x is a list)
If x is a list with more than 1 elements, the output plot is a grid with mutliple plots.
Columns and row number can be adjusted with grafical argument mfrow (see par
)
If x has the wrong class, the class can be set with: class(x) <- c('dataSEM', class(x)) (if x has the class data.frame or data.table) and class(x) <- 'dataSEM' (if x has the class list).