hydrotsm

Flow duration curve using facet_wrap of ggplot in R?

混江龙づ霸主 提交于 2021-02-19 05:27:05
问题 I am using fdc of hydroTSM package . I have three data.frame and i would like to construct Flow duration curves (FDC) of the data.frame using facet_wrap functionality of ggplot to have the plots in three rows and one column . the following will produce FDC curves for DF1 . library(tidyverse) library(hydroTSM) library(gridExtra) DF1 = data.frame(Ob = runif(1000,0,500), A = runif(1000,0,700), B = runif(1000,2,800)) DF2 = data.frame(Ob = runif(1000,0,500), A = runif(1000,0,700), B = runif(1000,2

Flow duration curve using facet_wrap of ggplot in R?

早过忘川 提交于 2021-02-19 05:26:37
问题 I am using fdc of hydroTSM package . I have three data.frame and i would like to construct Flow duration curves (FDC) of the data.frame using facet_wrap functionality of ggplot to have the plots in three rows and one column . the following will produce FDC curves for DF1 . library(tidyverse) library(hydroTSM) library(gridExtra) DF1 = data.frame(Ob = runif(1000,0,500), A = runif(1000,0,700), B = runif(1000,2,800)) DF2 = data.frame(Ob = runif(1000,0,500), A = runif(1000,0,700), B = runif(1000,2

Compute daily, month and annual average of several data sets

倾然丶 夕夏残阳落幕 提交于 2019-12-02 07:52:34
问题 I have a data frame: MS_NR SS_NR DATE HOUR VALUE 1 13095010 68 1/01/2014 0:00:00 9,8 2 13095010 68 1/01/2014 1:00:00 8,0 3 13095010 68 1/01/2014 2:00:00 NA 4 13095010 68 1/01/2014 3:00:00 7,5 5 13095010 68 1/01/2014 4:00:00 7,0 6 13095010 68 1/01/2014 5:00:00 8,5 are temperature observations of a weather station taken every hour, I want to calculate the daily, weekly, monthly and annual averages of several data frames of different weather stations. How can I do this within a loop, so that the

Compute daily, month and annual average of several data sets

六眼飞鱼酱① 提交于 2019-12-02 07:23:16
I have a data frame: MS_NR SS_NR DATE HOUR VALUE 1 13095010 68 1/01/2014 0:00:00 9,8 2 13095010 68 1/01/2014 1:00:00 8,0 3 13095010 68 1/01/2014 2:00:00 NA 4 13095010 68 1/01/2014 3:00:00 7,5 5 13095010 68 1/01/2014 4:00:00 7,0 6 13095010 68 1/01/2014 5:00:00 8,5 are temperature observations of a weather station taken every hour, I want to calculate the daily, weekly, monthly and annual averages of several data frames of different weather stations. How can I do this within a loop, so that the process is not repetitive? When working with hydro-meteorological data, I usually use xts and hydroTSM