Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev feat: added logic to sort cases and package reference of the order fuction #100

Merged
merged 75 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
878b097
adding conditional for single color in plot by variable (#20)
GeraldineGomez Feb 1, 2023
f51defa
modify conditional of var_fill (#21)
GeraldineGomez Feb 1, 2023
1ae7b87
modify dengue example and plot by variables (#23)
GeraldineGomez Feb 1, 2023
a7c4428
modify text size and color of plot by variable (#24)
GeraldineGomez Feb 1, 2023
9ce2374
updating text size plot
GeraldineGomez Feb 2, 2023
1e55550
automation porcentage of ages and total cases, correction of graphs (…
GeraldineGomez Feb 2, 2023
b02316f
automation of total cases and correction of graphs (#26)
GeraldineGomez Feb 2, 2023
a4776bf
updating var_fill
GeraldineGomez Feb 2, 2023
36f4b1f
restoring parameters function
GeraldineGomez Feb 2, 2023
837948a
updating single color plot by variable
GeraldineGomez Feb 2, 2023
b880f54
update lifecycle RECON in README file
GeraldineGomez Jun 20, 2023
56d9dd6
update lifecycle to maturing in README file
GeraldineGomez Jun 21, 2023
6ea2937
update and add functions of subnational report and package documentat…
GeraldineGomez Jun 23, 2023
cc2ed21
Merge remote-tracking branch 'origin/main' into dev
GeraldineGomez Jun 23, 2023
d3fe0a9
fix: code style and indentation (#33)
GeraldineGomez Jun 24, 2023
6541018
update functions and documentation of subnational report (#34)
GeraldineGomez Jun 24, 2023
c142897
fix: import and plot functions (#38)
GeraldineGomez Jul 9, 2023
f560b3e
Merge branch 'main' into dev
GeraldineGomez Jul 9, 2023
798d42d
Set up pkgdown website (#37)
Bisaloo Jul 10, 2023
cacd14c
translation to Spanish of functions, documentation and vignettes (#39)
GeraldineGomez Jul 20, 2023
ca29381
updating documentation with the new package logo (#40)
GeraldineGomez Jul 24, 2023
3d899ec
Merge branch 'main' into dev
GeraldineGomez Jul 24, 2023
2b2373f
fix descriptions of report template sections and adding multiple grou…
GeraldineGomez Jul 27, 2023
ab3ff3e
adding multiple diseases to agrupar_cols_casos (#43)
GeraldineGomez Jul 27, 2023
011b611
adding validation to mortalidad event (#45)
GeraldineGomez Jul 27, 2023
285a388
Fix report template (#46)
GeraldineGomez Jul 27, 2023
1d9cbff
updating plotting for multiples diseases (#48)
GeraldineGomez Jul 27, 2023
f896166
updating visualisation function for multiple diseases (#49)
GeraldineGomez Jul 27, 2023
a36dc5e
fix: whitespace on report basic template (#50)
GeraldineGomez Jul 27, 2023
561e1c1
fix condition of morbility (#51)
GeraldineGomez Jul 27, 2023
5334fe8
fix process and implicated functions to import event data (#56)
GeraldineGomez Sep 29, 2023
ca7b05d
fix (import_data): updating functions related to import and clean pro…
GeraldineGomez Sep 29, 2023
e455721
fix (import_data): updating functions related to sex semana epi compo…
GeraldineGomez Sep 29, 2023
202e1e1
fix (import_data): remove sca problems (#59)
GeraldineGomez Sep 29, 2023
3150af2
fix (import_data): remove whitespace (#60)
GeraldineGomez Sep 29, 2023
aacfb44
fix and docs: updating, clean and name chunks of vignettes and README…
GeraldineGomez Oct 2, 2023
d8ca3d4
test and chore: adding example test data and updating the documentati…
GeraldineGomez Oct 3, 2023
24721ab
Merge remote-tracking branch 'origin/main' into dev
gsgomezm Oct 3, 2023
fff288b
fix: data, examples and nombre_evento parameter of report template (#64)
GeraldineGomez Oct 3, 2023
c3eba46
fix: data example, import data function and documentation (#65)
GeraldineGomez Oct 3, 2023
0041ffa
fix, chore and feat: plot functions, map visualisation, documentation…
GeraldineGomez Oct 19, 2023
9fff868
Merge remote-tracking branch 'origin/main' into dev
GeraldineGomez Oct 19, 2023
2d9d9df
chore: added internal keyword to scraping function
GeraldineGomez Nov 16, 2023
1b36db4
chore: added keyword internal to auxiliar functions, validations of i…
GeraldineGomez Nov 16, 2023
f16288e
chore: added validations of inputs, rename functions and updating exa…
GeraldineGomez Nov 16, 2023
f4cebac
chore: added validations of inputs and updating examples and document…
GeraldineGomez Nov 16, 2023
66e36c6
chore: added validations of inputs, remove functions and updating exa…
GeraldineGomez Nov 16, 2023
3cf6d8d
chore: updating examples and documentation with new definition of fun…
GeraldineGomez Nov 16, 2023
972c3a4
chore[README]: updating documentation with new definition of function…
GeraldineGomez Nov 16, 2023
8c1377d
chore[vignette]: updating documentation with new definition of functi…
GeraldineGomez Nov 16, 2023
345b11a
chore[vignette]: updating documentation with new definition of functi…
GeraldineGomez Nov 16, 2023
2a03706
chore[examples]: updating documentation with new definition of functi…
GeraldineGomez Nov 16, 2023
b0dc286
Merge remote-tracking branch 'origin/main' into dev
GeraldineGomez Nov 16, 2023
5052b2d
fix (limpiar_fecha_event): duplicate sentence
GeraldineGomez Nov 16, 2023
c734123
fix (plot_map): removing duplicate parameter
GeraldineGomez Nov 16, 2023
b356e00
fix: duplicate values and examples definitions
GeraldineGomez Nov 16, 2023
7939aab
fix: spaces of functions
GeraldineGomez Nov 16, 2023
90a69a1
fix (skeleton): updated parameters of template
GeraldineGomez Nov 16, 2023
9d7e2f8
fix(skeleton): updating parameters in import function
GeraldineGomez Nov 16, 2023
4e41221
feat, fix and chore: validations, variable names and linted and clean…
GeraldineGomez Nov 23, 2023
d1190e5
Merge branch 'main' into dev
GeraldineGomez Nov 23, 2023
0d55223
Fix map file size (#74)
GeraldineGomez Nov 24, 2023
0fec094
Merge branch 'main' into dev
GeraldineGomez Nov 24, 2023
16fab85
Feat: removed and logic relate to dpto and mpio params (#75)
GeraldineGomez Dec 8, 2023
264e646
Merge branch 'main' into dev
GeraldineGomez Dec 8, 2023
34308a2
Dev feat: updated validation response from SIVIGILA API (#80)
GeraldineGomez Dec 13, 2023
c8a70f9
feat(skeleton): added suggestion section in report (#83)
GeraldineGomez Jan 15, 2024
4979557
Merge branch 'main' into dev
GeraldineGomez Jan 15, 2024
f66542c
feat(skeleton): added toggle options for report sections (#89)
GeraldineGomez Feb 5, 2024
23e9dc5
fix(impor_data_event): adding extra validation for dengue 2016 (#91)
GeraldineGomez Feb 13, 2024
f3b3ddf
feat(skeleton): removed toggle option for suggestion section (#93)
GeraldineGomez Feb 14, 2024
f538096
Merge branch 'main' into dev
GeraldineGomez Feb 14, 2024
6bbc429
feat: added logic to sort ascending data by cases (#96)
GeraldineGomez Feb 14, 2024
b7668a5
feat: added logic to sort cases and package reference of the order fu…
GeraldineGomez Feb 20, 2024
bd40784
Merge branch 'main' into dev
GeraldineGomez Feb 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -686,17 +686,20 @@ plot_dptos <- function(data_agrupada,
if (num_eventos > 3) {
pos_leyenda <- ggplot2::theme(legend.position = "bottom")
}
data_agrupada <- data_agrupada %>%
group_by_at(nomb_col) %>%
dplyr::summarise(casos = sum(.data[["casos"]]), .groups = "drop")
plot_casos_dptos <-
ggplot2::ggplot(data_agrupada,
ggplot2::aes(x = .data[[nomb_col]],
y = .data[["casos"]],
fill = .data[["nombre_evento"]])) +
ggplot2::aes(x = stats::reorder(.data[[nomb_col]],
.data[["casos"]]),
y = .data[["casos"]])) +
ggplot2::geom_bar(width = 0.5,
stat = "identity") +
stat = "identity",
fill = "#2274BB") +
ggplot2::labs(x = "\nDepartamento\n", y = "Numero de casos\n",
caption = fuente_data) +
ggplot2::theme_classic() +
obtener_estetica_escala(escala = num_eventos, nombre = "Eventos") +
tema_sivirep() +
pos_leyenda +
ggplot2::coord_flip()
Expand Down Expand Up @@ -748,17 +751,20 @@ plot_mpios <- function(data_agrupada,
if (num_eventos > 3) {
pos_leyenda <- ggplot2::theme(legend.position = "bottom")
}
data_agrupada <- data_agrupada %>%
group_by_at(nomb_col) %>%
dplyr::summarise(casos = sum(.data[["casos"]]), .groups = "drop")
plot_casos_muns <-
ggplot2::ggplot(data_agrupada,
ggplot2::aes(x = .data[[nomb_col]],
y = .data[["casos"]],
fill = .data[["nombre_evento"]])) +
ggplot2::aes(x = stats::reorder(.data[[nomb_col]],
.data[["casos"]]),
y = .data[["casos"]])) +
ggplot2::geom_bar(width = 0.5,
stat = "identity") +
stat = "identity",
fill = "#2274BB") +
ggplot2::labs(x = "\nMunicipio\n", y = "Numero de casos\n",
caption = fuente_data) +
ggplot2::theme_classic() +
obtener_estetica_escala(escala = num_eventos, nombre = "Eventos") +
tema_sivirep() +
pos_leyenda +
ggplot2::coord_flip()
Expand Down
2 changes: 1 addition & 1 deletion R/theme_sivirep.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ tema_sivirep <- function() {
obtener_estetica_escala <- function(escala = 0, nombre) {
colores <- c("#2274BB", "#5ab4ac", "#d8b365", "#AC6DAD", "#D49392",
"#19AFE5", "#87C762", "#9DB2D0")
colores <- colores[1:escala]
if (escala > 0) {
colores <- colores[1:escala]
relleno_escala <- ggplot2::scale_fill_manual(values = colores,
name = nombre)
}
Expand Down
538 changes: 538 additions & 0 deletions inst/rmarkdown/templates/reports/skeleton/skeleton.html

Large diffs are not rendered by default.

Loading
Loading