dbca-wa / wastdr

An R Client for the WA Sea Turtles and Strandings Database WAStD
https://dbca-wa.github.io/wastdr/
Other
3 stars 0 forks source link

Exclude false positives from duplicate surveys #54

Closed florianm closed 3 years ago

florianm commented 3 years ago

etlTN > wastd.Rmd > duplicate surveys: show only true, overlapping surveys as duplicates. Add sparkline minicharts to show duration?

Example for sparkline in table

# p <- tibble::tibble(
#   name = rep(c("A", "B"), each = 20),
#   value = runif(40, min = -10, max = 10) %>% cumsum()
# ) %>%
#   dplyr::group_by(name) %>%
#   dplyr::summarise(
#     chart = spk_chr(
#       value,
#       type="line")
#   ) %>%
#   gt::gt() %>%
#   gt::fmt_markdown(columns = vars(chart))
# 
# p
# p_html <- gt:::as.tags.gt_tbl(p)
# 
# p_html <- htmltools::attachDependencies(p_html, htmlwidgets::getDependency("sparkline"))
# p_html
# print(p_html, browse = interactive())
florianm commented 3 years ago

Splitting surveys into morning and evening surveys effectively avoided most false positives.