plot.Qm3s | R Documentation |
Qm3s
object (time series of simulated flows)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),
...
)
x |
data.frame with a first column with POSIXt dates and followings columns with flows at each node of the network |
type |
character plot type (See plot.default), default "l" |
xlab |
character label for the x axis, default to "Date" |
ylab |
character label for the y axis, default to "Flow (m3/s)" |
main |
character main title for the plot, default to "Simulated flows" |
col |
character plotting colors (See par) |
legend |
character see parameter |
legend.cex |
character |
legend.x , legend.y |
Legend position, see |
lty |
character or numeric The line type (See par) |
mgp |
The margin line for the axis title, axis labels and axis line (See par) |
... |
Further arguments to pass to the matplot functions |
For examples of use see topics RunModel.GRiwrmInputsModel, RunModel_Reservoir, and RunModel.Supervisor.
Screen plot window.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.