Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
propre.ecln
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DREAL Pays de la Loire
Centre de Services de la Donnée
propre.ecln
Commits
b116d1d8
Commit
b116d1d8
authored
1 year ago
by
Daniel.Kalioudjoglou
Browse files
Options
Downloads
Patches
Plain Diff
modification sous titre et indications sur graphiques
parent
d9b64403
No related branches found
No related tags found
1 merge request
!13
modification sous titre et indications sur graphiques
Pipeline
#220659
failed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/creer_graphique_evolution_trim.R
+18
-3
18 additions, 3 deletions
R/creer_graphique_evolution_trim.R
man/indic_ecln.Rd
+1
-1
1 addition, 1 deletion
man/indic_ecln.Rd
with
19 additions
and
4 deletions
R/creer_graphique_evolution_trim.R
+
18
−
3
View file @
b116d1d8
...
@@ -26,8 +26,19 @@ creer_graphique_evolution_trim <- function(data = indic_ecln,
...
@@ -26,8 +26,19 @@ creer_graphique_evolution_trim <- function(data = indic_ecln,
dplyr
::
pull
(
.data
$
Periode
)
dplyr
::
pull
(
.data
$
Periode
)
max_date
<-
max
(
per
)
max_date
<-
max
(
per
)
num_trimestre
<-
as.numeric
(
lubridate
::
quarter
(
max_date
))
rang_trimestre
<-
if
(
num_trimestre
==
1
){
"Premier"
}
else
if
(
num_trimestre
==
2
){
"Deuxième"
}
else
if
(
num_trimestre
==
3
){
"Troisième"
}
else
{
"Quatrième"
}
sous_titre
<-
glue
::
glue
(
"Au {label_rang(lubridate::quarter(max_date))} trimestre {lubridate::year(max_date)}"
)
# sous_titre <- glue::glue("Au {label_rang(lubridate::quarter(max_date))} trimestre {lubridate::year(max_date)}")
sous_titre
<-
glue
::
glue
(
"{rang_trimestre} trimestre {lubridate::year(max_date)}"
)
label
<-
data
%>%
label
<-
data
%>%
dplyr
::
filter
(
dplyr
::
filter
(
.data
$
Zone
==
zone
,
.data
$
Zone
==
zone
,
...
@@ -49,9 +60,13 @@ creer_graphique_evolution_trim <- function(data = indic_ecln,
...
@@ -49,9 +60,13 @@ creer_graphique_evolution_trim <- function(data = indic_ecln,
format
(
round
(
.data
$
TauxEvolution12Mois
,
1
),
big.mark
=
" "
,
decimal.mark
=
","
),
format
(
round
(
.data
$
TauxEvolution12Mois
,
1
),
big.mark
=
" "
,
decimal.mark
=
","
),
" %"
" %"
),
),
# label = ifelse(.data$TypeIndicateur %in% c("Valeur trimestrielle"),
# FormatCaractere(.data$Periode),
# "Moyenne\nannuelle"
# )
label
=
ifelse
(
.data
$
TypeIndicateur
%in%
c
(
"Valeur trimestrielle"
),
label
=
ifelse
(
.data
$
TypeIndicateur
%in%
c
(
"Valeur trimestrielle"
),
FormatCaractere
(
.data
$
Periode
)
,
"Valeur\ntrimestrielle"
,
"Moyenne\nannuelle"
"Moyenne\nannuelle"
)
)
)
)
...
...
This diff is collapsed.
Click to expand it.
man/indic_ecln.Rd
+
1
−
1
View file @
b116d1d8
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
\alias{indic_ecln}
\alias{indic_ecln}
\title{Table contenant les différents indicateurs de la source ecln utiles pour la publication.}
\title{Table contenant les différents indicateurs de la source ecln utiles pour la publication.}
\format{
\format{
Table de 91884 lignes et
9
colonnes:
Table de 91884 lignes et
10
colonnes:
\describe{
\describe{
\item{TypeZone}{Type de territoire}
\item{TypeZone}{Type de territoire}
\item{CodeZone}{Code du territoire}
\item{CodeZone}{Code du territoire}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment