@@ -35,7 +35,7 @@ library(apexcharter)
3535
3636
3737setwd("../..")
38- pars <- peskas.timor.data.pipeline:: read_config()
38+ pars <- read_config()
3939
4040
4141kobo_trips <- peskas.timor.data.pipeline::get_merged_trips(pars) %>% dplyr::filter(.data$landing_date >= "2018-01-01")
@@ -329,7 +329,7 @@ kobo_trips %>%
329329``` {r echo=FALSE, fig.height=4, fig.width=10, message=FALSE, warning=FALSE, out.height="100%",out.width="100%"}
330330
331331estimates$national$aggregated %>%
332- ggplot(aes(landing_period, n_landings_per_boat)) +
332+ ggplot(aes(as.Date( landing_period) , n_landings_per_boat)) +
333333 geom_line(color = "#447597") +
334334 geom_point(color = "#447597") +
335335 geom_area(fill = "#447597", alpha = 0.25) +
@@ -360,7 +360,7 @@ estimates$national$aggregated %>%
360360``` {r echo=FALSE, fig.height=4, fig.width=10, message=FALSE, warning=FALSE, out.height="100%",out.width="100%"}
361361
362362estimates$national$aggregated %>%
363- ggplot(aes(landing_period, catch / 1000)) +
363+ ggplot(aes(as.Date( landing_period) , catch / 1000)) +
364364 geom_line(color = "#447597") +
365365 geom_point(color = "#447597") +
366366 geom_area(fill = "#447597", alpha = 0.25) +
@@ -419,7 +419,7 @@ estimates$municipal %>%
419419``` {r echo=FALSE, fig.height=4, fig.width=10, message=FALSE, warning=FALSE, out.height="100%",out.width="100%"}
420420
421421estimates$national$aggregated %>%
422- ggplot(aes(landing_period, catch_price)) +
422+ ggplot(aes(as.Date( landing_period) , catch_price)) +
423423 geom_line(color = "#447597") +
424424 geom_point(color = "#447597") +
425425 geom_area(fill = "#447597", alpha = 0.25) +
@@ -478,7 +478,7 @@ estimates$municipal %>%
478478``` {r echo=FALSE, fig.height=4, fig.width=10, message=FALSE, warning=FALSE, out.height="100%",out.width="100%"}
479479
480480estimates$national$aggregated %>%
481- ggplot(aes(landing_period, price_kg)) +
481+ ggplot(aes(as.Date( landing_period) , price_kg)) +
482482 geom_line(color = "#447597") +
483483 geom_point(color = "#447597") +
484484 geom_area(fill = "#447597", alpha = 0.25) +
@@ -845,7 +845,7 @@ estimates$national$taxa %>%
845845 "Garfish",
846846 "Tuna/Bonito",
847847 "Mackerel scad"))) %>%
848- ggplot(aes(x = landing_period, y = catch / 1000)) +
848+ ggplot(aes(x = as.Date( landing_period) , y = catch / 1000)) +
849849 facet_grid(comm_name ~ ., scales = "free_y") +
850850 geom_line(aes(color = comm_name), show.legend = FALSE) +
851851 geom_area(aes(fill = comm_name), alpha = 0.5) +
0 commit comments