Commit 4e4b6041 authored by Heraut Louis's avatar Heraut Louis
Browse files

minor

parent 0c497219
No related merge requests found
Showing with 14 additions and 14 deletions
+14 -14
...@@ -34,7 +34,7 @@ source('processing/analyse.R', encoding='UTF-8') ...@@ -34,7 +34,7 @@ source('processing/analyse.R', encoding='UTF-8')
# Manages datasheets creations for all stations. Makes the call to # Manages datasheets creations for all stations. Makes the call to
# the different headers, trend analysis graphs and realises arranging # the different headers, trend analysis graphs and realises arranging
# every plots. # every plots.
datasheet_panel = function (list_df2plot, df_meta, trend_period, info_header, time_header, foot_note, layout_matrix, info_ratio, time_ratio, var_ratio, foot_height, resource_path, AEAGlogo_file, INRAElogo_file, FRlogo_file, outdirTmp) { datasheet_panel = function (list_df2plot, df_meta, trend_period, info_header, time_header, foot_note, layout_matrix, info_ratio, time_ratio, var_ratio, foot_height, resources_path, AEAGlogo_file, INRAElogo_file, FRlogo_file, outdirTmp) {
# The percentage of augmentation and diminution of the min # The percentage of augmentation and diminution of the min
# and max limits for y axis # and max limits for y axis
...@@ -432,7 +432,7 @@ datasheet_panel = function (list_df2plot, df_meta, trend_period, info_header, ti ...@@ -432,7 +432,7 @@ datasheet_panel = function (list_df2plot, df_meta, trend_period, info_header, ti
P[[i+nbh]] = p P[[i+nbh]] = p
} }
Foot = foot_panel(k, nCode, resource_path, Foot = foot_panel(k, nCode, resources_path,
AEAGlogo_file, INRAElogo_file, AEAGlogo_file, INRAElogo_file,
FRlogo_file, foot_height) FRlogo_file, foot_height)
...@@ -1580,7 +1580,7 @@ hydrograph_panel = function (df_data_code, period, margin=NULL) { ...@@ -1580,7 +1580,7 @@ hydrograph_panel = function (df_data_code, period, margin=NULL) {
} }
foot_panel = function (n_page, N_page, resource_path, AEAGlogo_file, INRAElogo_file, FRlogo_file, foot_height) { foot_panel = function (n_page, N_page, resources_path, AEAGlogo_file, INRAElogo_file, FRlogo_file, foot_height) {
text_page = paste( text_page = paste(
"fiche station <b>p. ", n_page, "/", N_page, "</b>", "fiche station <b>p. ", n_page, "/", N_page, "</b>",
...@@ -1603,9 +1603,9 @@ foot_panel = function (n_page, N_page, resource_path, AEAGlogo_file, INRAElogo_f ...@@ -1603,9 +1603,9 @@ foot_panel = function (n_page, N_page, resource_path, AEAGlogo_file, INRAElogo_f
hjust=1, vjust=0.5, hjust=1, vjust=0.5,
gp=gpar(col="#00A3A8", fontsize=6)) gp=gpar(col="#00A3A8", fontsize=6))
AEAGlogo_path = file.path(resource_path, AEAGlogo_file) AEAGlogo_path = file.path(resources_path, AEAGlogo_file)
INRAElogo_path = file.path(resource_path, INRAElogo_file) INRAElogo_path = file.path(resources_path, INRAElogo_file)
FRlogo_path = file.path(resource_path, FRlogo_file) FRlogo_path = file.path(resources_path, FRlogo_file)
AEAGlogo_img = readPNG(AEAGlogo_path) AEAGlogo_img = readPNG(AEAGlogo_path)
AEAGlogo_grob = rasterGrob(AEAGlogo_img, AEAGlogo_grob = rasterGrob(AEAGlogo_img,
......
...@@ -145,7 +145,7 @@ datasheet_layout = function (df_data, df_meta, layout_matrix, ...@@ -145,7 +145,7 @@ datasheet_layout = function (df_data, df_meta, layout_matrix,
info_ratio=1, time_ratio=2, info_ratio=1, time_ratio=2,
var_ratio=3, foot_height=0.5, var_ratio=3, foot_height=0.5,
df_shapefile=NULL, df_shapefile=NULL,
resource_path=NULL, resources_path=NULL,
AEAGlogo_file=NULL, AEAGlogo_file=NULL,
INRAElogo_file=NULL, INRAElogo_file=NULL,
FRlogo_file=NULL) { FRlogo_file=NULL) {
...@@ -245,7 +245,7 @@ datasheet_layout = function (df_data, df_meta, layout_matrix, ...@@ -245,7 +245,7 @@ datasheet_layout = function (df_data, df_meta, layout_matrix,
# If datasheets needs to be plot # If datasheets needs to be plot
if ('datasheet' %in% toplot) { if ('datasheet' %in% toplot) {
datasheet_panel(list_df2plot, df_meta, trend_period, info_header=info_header, time_header=time_header, foot_note=foot_note, layout_matrix=layout_matrix, info_ratio=info_ratio, time_ratio=time_ratio, var_ratio=var_ratio, foot_height=foot_height, resource_path=resource_path, AEAGlogo_file=AEAGlogo_file, INRAElogo_file=INRAElogo_file, FRlogo_file=FRlogo_file, outdirTmp=outdirTmp) datasheet_panel(list_df2plot, df_meta, trend_period, info_header=info_header, time_header=time_header, foot_note=foot_note, layout_matrix=layout_matrix, info_ratio=info_ratio, time_ratio=time_ratio, var_ratio=var_ratio, foot_height=foot_height, resources_path=resources_path, AEAGlogo_file=AEAGlogo_file, INRAElogo_file=INRAElogo_file, FRlogo_file=FRlogo_file, outdirTmp=outdirTmp)
} }
......
...@@ -154,12 +154,12 @@ if (!(file.exists(figdir))) { ...@@ -154,12 +154,12 @@ if (!(file.exists(figdir))) {
} }
print(paste('figdir :', figdir)) print(paste('figdir :', figdir))
# Resource directory # Resources directory
resource_path = file.path(computer_work_path, 'resource') resources_path = file.path(computer_work_path, 'resources')
if (!(file.exists(resource_path))) { if (!(file.exists(resources_path))) {
dir.create(resource_path) dir.create(resources_path)
} }
print(paste('resource_path :', resource_path)) print(paste('resources_path :', resources_path))
# Logo filename # Logo filename
AEAGlogo_file = 'agence-de-leau-adour-garonne_logo.png' AEAGlogo_file = 'agence-de-leau-adour-garonne_logo.png'
...@@ -351,7 +351,7 @@ datasheet_layout(toplot=c( ...@@ -351,7 +351,7 @@ datasheet_layout(toplot=c(
df_shapefile=df_shapefile, df_shapefile=df_shapefile,
figdir=figdir, figdir=figdir,
filename_opt='', filename_opt='',
resource_path=resource_path, resources_path=resources_path,
AEAGlogo_file=AEAGlogo_file, AEAGlogo_file=AEAGlogo_file,
INRAElogo_file=INRAElogo_file, INRAElogo_file=INRAElogo_file,
FRlogo_file=FRlogo_file) FRlogo_file=FRlogo_file)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment