plot.dataSEM {SoilHyP} | R Documentation |
Plot dataSEM
Description
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.
Usage
## S3 method for class '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",
...
)
Arguments
x |
object of class dataSEM (see details) |
ts |
character specifying the column containing the time stamp (format must be numeric or POSIXct) |
tens.up |
character specifying the column containing the measurements of the upper tensiometer |
tens.low |
character specifying the column containing the measurements of the lower tensiometer |
weight |
character specifying the column containing the weight |
plot.tens |
plot tensiometer values (TRUE/FALSE) |
plot.weight |
plot weight values (TRUE/FALSE) |
plot.legend |
plot legend (TRUE/FALSE) |
xlab |
lable for the x axis |
plot.title |
character spezifying plot title. If empty no title will be added. |
color.tens |
colors of the plotted tensiometer values |
color.weight |
color of the plotted weight values |
... |
Graphical arguments (see |
Details
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).
Author(s)
Ullrich Dettmann