This function plot time series of flow rate in m3/s. It's a method for object
of class "Qm3s" which can be directly called by plot
. It can also be called
as a function plot.Qm3s
if the first parameter has the good format.
# S3 method for class 'Qm3s'
plot(
x,
type = "l",
xlab = "Date",
ylab = expression("Flow rate (m"^"3" * "/s)"),
main = "Simulated flows",
col = grDevices::hcl.colors(ncol(x) - 1, "Zissou 1"),
legend = colnames(x)[-1],
legend.cex = 0.7,
legend.x = "topright",
legend.y = NULL,
lty = 1,
mgp = c(2.5, 1, 0),
...
)
data.frame with a first column with POSIXt dates and followings columns with flows at each node of the network
character plot type (See plot.default), default "l"
character label for the x axis, default to "Date"
character label for the y axis, default to "Flow (m3/s)"
character main title for the plot, default to "Simulated flows"
character see parameter legend
of legend. Set it to NULL
to hide the legend
character cex
parameter for the text of the legend (See par)
Legend position, see x
and y
parameters in graphics::legend
The margin line for the axis title, axis labels and axis line (See par)
Further arguments to pass to the matplot functions
Screen plot window.
For examples of use see topics RunModel.GRiwrmInputsModel, RunModel_Reservoir, and RunModel.Supervisor.