View source: R/twilight_label_read.R
twilight_label_read | R Documentation |
This function read an exported csv file from TRAINSET https://trainset.raphaelnussbaumer.com/
and update the twilight data tag$twilight
.
twilight_label_read(
tag,
file = glue::glue("./data/twilight-label/{tag$param$id}-labeled.csv")
)
tag |
a GeoPressureR |
file |
csv file of the labels to be read. |
Same tag
object, updated with the labels tag$twilight$label
.
Other geolight:
geolight_map()
,
twilight_create()
,
twilight_label_write()
withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
tag <- tag_create("18LX", quiet = TRUE) |>
tag_label(quiet = TRUE) |>
twilight_create()
tag_labelled <- twilight_label_read(tag)
})
plot(tag, type = "twilight") + ggplot2::ggtitle("Before label")
str(tag_labelled$twilight)
plot(tag_labelled, type = "twilight") + ggplot2::ggtitle("After label")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.