Skip to content

Commit

Permalink
chore(plot): use ruta_dir = tempdir() and cache param in examples
Browse files Browse the repository at this point in the history
Ref: #206
  • Loading branch information
GeraldineGomez committed Nov 13, 2024
1 parent 071e2bd commit 88bdc89
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
21 changes: 14 additions & 7 deletions R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
#' geo_ocurrencia[1:4])
#' plot_map(
#' data_agrupada = data_espacial,
#' col_distribucion = "casos"
#' col_distribucion = "casos",
#' cache = TRUE
#' )
#' # Mapa por municipios de un departamento especifico
#' data_filtrada_dpto <- geo_filtro(
Expand All @@ -42,7 +43,8 @@
#' plot_map(
#' data_agrupada = data_espacial_dpto,
#' col_codigos = "cod_mun_o",
#' col_distribucion = "casos"
#' col_distribucion = "casos",
#' ruta_dir = tempdir()
#' )
#' # Mapa por municipio especifico
#' data_filtrada_mpio <- geo_filtro(
Expand All @@ -56,15 +58,18 @@
#' col_codigos = "cod_mun_o",
#' col_distribucion = "casos",
#' dpto = "Antioquia",
#' mpio = "Medellin"
#' mpio = "Medellin",
#' cache = TRUE
#' )
#' # Mapa con la incidencia por municipios de un departamento específico
#' incidencia_dpto <-
#' calcular_incidencia_geo(data_agrupada = data_espacial_dpto)
#' calcular_incidencia_geo(data_agrupada = data_espacial_dpto,
#' ruta_dir = tempdir())
#' plot_map(
#' data_agrupada = incidencia_dpto$data_incidencia,
#' col_codigos = "cod_mun_o",
#' col_distribucion = "incidencia"
#' col_distribucion = "incidencia",
#' ruta_dir = tempdir()
#' )
#' }
#' @export
Expand Down Expand Up @@ -1344,7 +1349,8 @@ plot_per_etn <- function(data_agrupada,
#' data_agrupada <- agrupar_mpio(data_limpia, dpto = "Antioquia")
#' incidencia_mpios <- calcular_incidencia_geo(
#' data_agrupada =
#' data_agrupada
#' data_agrupada,
#' ruta_dir = tempdir()
#' )
#' plot_tabla_incidencia_geo(
#' data_agrupada = incidencia_mpios$data_incidencia,
Expand Down Expand Up @@ -1426,7 +1432,8 @@ plot_tabla_incidencia_geo <- function(data_agrupada,
#' incidencia_mpios <-
#' calcular_incidencia_sex(
#' data_agrupada = data_agrupada_sex,
#' dpto = "Antioquia"
#' dpto = "Antioquia",
#' ruta_dir = tempdir()
#' )
#' plot_tabla_incidencia_sex(
#' data_agrupada = incidencia_mpios$data_incidencia,
Expand Down
15 changes: 10 additions & 5 deletions man/plot_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/plot_tabla_incidencia_geo.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/plot_tabla_incidencia_sex.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 88bdc89

Please sign in to comment.