From d3da50d0e5ccfdd47f4ef813c689d5609cc785b7 Mon Sep 17 00:00:00 2001 From: biopsichas Date: Thu, 13 Apr 2023 16:33:11 +0300 Subject: [PATCH] climate vignette draft finished --- NAMESPACE | 1 + R/plotting.R | 6 +- docs/404.html | 1 + docs/LICENSE-text.html | 1 + docs/articles/calibration.html | 57 ++-- ...e17b42767410b.png => file3d90139417fe.png} | Bin ...le17b44095233c.png => file3d903354141.png} | Bin ...e17b43cc150cf.png => file3d90349a7a8d.png} | Bin ...le17b443815d7.png => file3d90383045e2.png} | Bin ...e17b478621a54.png => file3d9039b912df.png} | Bin ...e17b411ec7be9.png => file3d90402b33ca.png} | Bin ...e17b47d686e6d.png => file3d9041c41818.png} | Bin ...le17b463c740b1.png => file3d904cb0186.png} | Bin ...le17b441d839a.png => file3d90557569d6.png} | Bin ...e17b462c62c87.png => file3d9056a334f8.png} | Bin ...e17b4429b32ff.png => file3d9059bf1ddf.png} | Bin ...e17b430ce738b.png => file3d9063b71768.png} | Bin ...e17b475cd14e5.png => file3d9075977387.png} | Bin ...e17b462614c8a.png => file3d90759b2b19.png} | Bin ...e17b473433c2e.png => file3d90783413c0.png} | Bin ...e17b47b614863.png => file3d9079d22208.png} | Bin ...le17b457a167f1.png => file3d907af6185.png} | Bin ...le17b45e8366e8.png => file3d90cd115a7.png} | Bin ...ile17b43658fe6.png => file3d90cfa1cca.png} | Bin ...le17b43f212d15.png => file3d90ffe1467.png} | Bin docs/articles/climate.html | 301 ++++++++++++++++++ docs/articles/deposition.html | 1 + docs/articles/fig_basin.png | Bin 0 -> 215781 bytes .../cloud.png => docs/articles/fig_cloud.png | Bin docs/articles/fig_temp.png | Bin 0 -> 130777 bytes docs/articles/fig_wng.png | Bin 0 -> 18371 bytes docs/articles/index.html | 3 + docs/articles/land_use.html | 1 + .../land_use_files/figure-html/lu_pts-1.png | Bin 183631 -> 185114 bytes docs/articles/soil.html | 1 + docs/articles/weather.html | 15 +- docs/authors.html | 1 + docs/index.html | 1 + docs/news/index.html | 1 + docs/pkgdown.yml | 3 +- docs/reference/add_atmo_dep.html | 1 + docs/reference/add_missing_pcp_zero.html | 1 + docs/reference/add_weather.html | 1 + docs/reference/clean_outliers.html | 1 + docs/reference/clean_wq.html | 1 + docs/reference/df_t.html | 1 + docs/reference/df_to_txt.html | 1 + docs/reference/extract_rotation.html | 1 + docs/reference/fill_with_closest.html | 1 + docs/reference/get_atmo_dep.html | 1 + docs/reference/get_data_to_interpolate.html | 1 + docs/reference/get_dates.html | 1 + docs/reference/get_grid.html | 1 + docs/reference/get_hsg.html | 1 + docs/reference/get_interpolated_data.html | 1 + docs/reference/get_interpolation.html | 1 + docs/reference/get_lu_points.html | 1 + docs/reference/get_nb_st_with_data.html | 1 + docs/reference/get_soil_parameters.html | 1 + docs/reference/get_usersoil_table.html | 1 + docs/reference/hide_show.html | 1 + docs/reference/index.html | 1 + docs/reference/interpolate.html | 1 + ...e52f4769e32a5.png => file24d412101ce4.png} | Bin ...e52f4101367d7.png => file24d415d317da.png} | Bin ...le52f46df1bdc.png => file24d4160749f5.png} | Bin ...e52f4183b749e.png => file24d41fc328a3.png} | Bin ...e52f47eb21794.png => file24d422e61956.png} | Bin ...le52f4769fc4e.png => file24d42ac36303.png} | Bin ...e52f42cd81e31.png => file24d42e8f42ae.png} | Bin ...e52f467aa5966.png => file24d4322171d3.png} | Bin ...e52f47bcf168d.png => file24d4358e2c4e.png} | Bin ...le52f44fe314d6.png => file24d438f9849.png} | Bin ...le52f4814135b.png => file24d4398037ee.png} | Bin ...e52f44baf792f.png => file24d43b295676.png} | Bin ...e52f428aa7084.png => file24d444f53229.png} | Bin ...le52f468b7e3b.png => file24d4502d55c4.png} | Bin ...e52f470fd10f5.png => file24d450423a25.png} | Bin ...e52f46d52754b.png => file24d45ef72890.png} | Bin ...e52f4576012b3.png => file24d46ed71a40.png} | Bin ...e52f46049600c.png => file24d47bf15f3d.png} | Bin ...ile52f471e66a3.png => file24d47fc159f.png} | Bin ...ile52f427129fd.png => file24d4bcd681e.png} | Bin docs/reference/list_to_df.html | 1 + docs/reference/load_climate.html | 1 + docs/reference/load_climate_lst.html | 1 + docs/reference/load_stations.html | 1 + docs/reference/load_template.html | 1 + docs/reference/min_ks.html | 1 + docs/reference/my.check.pwd.html | 1 + docs/reference/my.check.pww.html | 1 + docs/reference/my.pcpd.html | 1 + docs/reference/my.pcpmhhr.html | 1 + docs/reference/my.pwd.html | 1 + docs/reference/my.pww.html | 1 + docs/reference/my.skew.html | 1 + docs/reference/nyears.html | 1 + docs/reference/plot_cal_data.html | 5 +- docs/reference/plot_fractions.html | 1 + docs/reference/plot_map.html | 11 +- docs/reference/plot_monthly.html | 5 +- docs/reference/plot_ts_fig.html | 1 + docs/reference/plot_weather.html | 5 +- docs/reference/plot_weather_compare.html | 5 +- docs/reference/plot_wgn_comparison.html | 1 + docs/reference/prepare_climate.html | 1 + docs/reference/prepare_wgn.html | 1 + docs/reference/read_tbl.html | 1 + docs/reference/sp.na.omit.html | 1 + docs/reference/transform_to_list.html | 1 + docs/reference/update_wst_id.html | 1 + docs/reference/update_wst_txt.html | 1 + docs/reference/usersoil_to_sol.html | 1 + docs/reference/write_weather_template.html | 1 + docs/search.json | 2 +- docs/sitemap.xml | 3 + vignettes/climate.Rmd | 76 ++--- vignettes/fig_cloud.png | Bin 0 -> 1183403 bytes vignettes/fig_wng.png | Bin 17783 -> 18371 bytes 119 files changed, 453 insertions(+), 102 deletions(-) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b42767410b.png => file3d90139417fe.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b44095233c.png => file3d903354141.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b43cc150cf.png => file3d90349a7a8d.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b443815d7.png => file3d90383045e2.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b478621a54.png => file3d9039b912df.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b411ec7be9.png => file3d90402b33ca.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b47d686e6d.png => file3d9041c41818.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b463c740b1.png => file3d904cb0186.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b441d839a.png => file3d90557569d6.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b462c62c87.png => file3d9056a334f8.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b4429b32ff.png => file3d9059bf1ddf.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b430ce738b.png => file3d9063b71768.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b475cd14e5.png => file3d9075977387.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b462614c8a.png => file3d90759b2b19.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b473433c2e.png => file3d90783413c0.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b47b614863.png => file3d9079d22208.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b457a167f1.png => file3d907af6185.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b45e8366e8.png => file3d90cd115a7.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b43658fe6.png => file3d90cfa1cca.png} (100%) rename docs/articles/calibration_files/image-Stations-0.0.1/{file17b43f212d15.png => file3d90ffe1467.png} (100%) create mode 100644 docs/articles/climate.html create mode 100644 docs/articles/fig_basin.png rename vignettes/cloud.png => docs/articles/fig_cloud.png (100%) create mode 100644 docs/articles/fig_temp.png create mode 100644 docs/articles/fig_wng.png rename docs/reference/libs/image-Stations-0.0.1/{file52f4769e32a5.png => file24d412101ce4.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f4101367d7.png => file24d415d317da.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f46df1bdc.png => file24d4160749f5.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f4183b749e.png => file24d41fc328a3.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f47eb21794.png => file24d422e61956.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f4769fc4e.png => file24d42ac36303.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f42cd81e31.png => file24d42e8f42ae.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f467aa5966.png => file24d4322171d3.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f47bcf168d.png => file24d4358e2c4e.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f44fe314d6.png => file24d438f9849.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f4814135b.png => file24d4398037ee.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f44baf792f.png => file24d43b295676.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f428aa7084.png => file24d444f53229.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f468b7e3b.png => file24d4502d55c4.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f470fd10f5.png => file24d450423a25.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f46d52754b.png => file24d45ef72890.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f4576012b3.png => file24d46ed71a40.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f46049600c.png => file24d47bf15f3d.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f471e66a3.png => file24d47fc159f.png} (100%) rename docs/reference/libs/image-Stations-0.0.1/{file52f427129fd.png => file24d4bcd681e.png} (100%) create mode 100644 vignettes/fig_cloud.png diff --git a/NAMESPACE b/NAMESPACE index e6b81df..6beef13 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -83,6 +83,7 @@ importFrom(ggplot2,geom_smooth) importFrom(ggplot2,geom_text) importFrom(ggplot2,ggplot) importFrom(ggplot2,ggtitle) +importFrom(ggplot2,labs) importFrom(ggplot2,theme) importFrom(ggplot2,theme_bw) importFrom(ggplot2,theme_minimal) diff --git a/R/plotting.R b/R/plotting.R index a304093..227c7e4 100644 --- a/R/plotting.R +++ b/R/plotting.R @@ -397,7 +397,7 @@ plot_weather_compare <- function(meteo_lst1, meteo_lst2, par, period = "day", fn #' @param title character, information to be added in figure title #' @importFrom dplyr %>% filter select mutate bind_rows #' @importFrom tidyr pivot_longer -#' @importFrom ggplot2 ggplot geom_bar facet_wrap ggtitle aes theme_minimal +#' @importFrom ggplot2 ggplot geom_bar facet_wrap ggtitle aes theme_minimal labs #' @return ggplot figure of bar plots #' @export #' @@ -447,10 +447,10 @@ plot_wgn_comparison <- function(meteo_lst1, meteo_lst2, station1, station2, type mutate(source = type2) ##Bar plot - fig <- ggplot(bind_rows(df1,df2), aes(x = month, y = values, fill = source))+ + fig <- ggplot(bind_rows(df1,df2), aes(x = as.factor(month), y = values, fill = source))+ geom_bar(stat='identity', position = "dodge")+ facet_wrap(~par, scales = "free")+ - ggtitle(paste(type1, "vs.", type2, title))+ + labs(title=paste(type1, "vs.", type2, title), x ="Months", y = "Values")+ theme_minimal() return(fig) diff --git a/docs/404.html b/docs/404.html index bec9415..31bb017 100644 --- a/docs/404.html +++ b/docs/404.html @@ -51,6 +51,7 @@ Land use Soil parameters Weather data + Climate data