From 4e6397b370047f406bff41869b7649f5f2906cf1 Mon Sep 17 00:00:00 2001 From: Delaigue Olivier <olivier.delaigue@irstea.fr> Date: Sat, 19 Jun 2021 09:26:09 +0200 Subject: [PATCH] style: add missing whitespaces to solve conflict with 'dev' Refs #122 --- R/plot.OutputsModel.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R/plot.OutputsModel.R b/R/plot.OutputsModel.R index 91a7504a..5fb55f75 100644 --- a/R/plot.OutputsModel.R +++ b/R/plot.OutputsModel.R @@ -439,7 +439,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = mar <- c(3, 5, 1, 5) par(new = FALSE, mar = mar) ylim1 <- c(+99999, -99999) - for(iLayer in 1:NLayers) { + for (iLayer in 1:NLayers) { ylim1[1] <- min(ylim1[1], OutputsModel$CemaNeigeLayers[[iLayer]]$Temp) ylim1[2] <- max(ylim1[2], OutputsModel$CemaNeigeLayers[[iLayer]]$Temp) if (iLayer == 1) { @@ -449,7 +449,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = } } plot(Xaxis, SnowPackLayerMean[IndPeriod_Plot], type = "n", ylim = ylim1, xlab = "", ylab = "", xaxt = "n", yaxt = "n", ...) - for(iLayer in 1:NLayers) { + for (iLayer in 1:NLayers) { lines(Xaxis, OutputsModel$CemaNeigeLayers[[iLayer]]$Temp[IndPeriod_Plot], lty = 3, col = "orchid", lwd = lwd * lwdk * 0.8) } abline(h = 0, col = "grey", lty = 2) @@ -474,7 +474,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = mar <- c(3, 5, 1, 5) par(new = FALSE, mar = mar) ylim1 <- c(+99999, -99999) - for(iLayer in 1:NLayers) { + for (iLayer in 1:NLayers) { ylim1[1] <- min(ylim1[1], OutputsModel$CemaNeigeLayers[[iLayer]]$SnowPack) ylim1[2] <- max(ylim1[2], OutputsModel$CemaNeigeLayers[[iLayer]]$SnowPack) if (iLayer == 1) { @@ -484,7 +484,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = } } plot(Xaxis, SnowPackLayerMean[IndPeriod_Plot], type = "l", ylim = ylim1, lwd = lwd * lwdk *1.2, col = "royalblue", xlab = "", ylab = "", xaxt = "n", yaxt = "n", ...) - for(iLayer in 1:NLayers) { + for (iLayer in 1:NLayers) { lines(Xaxis, OutputsModel$CemaNeigeLayers[[iLayer]]$SnowPack[IndPeriod_Plot], lty = 3, col = "royalblue", lwd = lwd * lwdk *0.8) } axis(side = 2, at = pretty(ylim1), labels = pretty(ylim1), cex.axis = cex.axis, ...) -- GitLab