library(lubridate) library(ggplot2) library(StreamMetabolism) library(xts) library(reshape) library(scales) ___Burgebrach <- sunrise.set(49.8264562,10.7415935, "2025/01/01", timezone="MET", num.days=370) sunrise <- ___Burgebrach$sunrise sunset <- ___Burgebrach$sunset sunrise <- strftime(sunrise, format="%R", tz="MET") sunset <- strftime(sunset, format="%R", tz="MET") ___Burgebrach["sr"] <- as.POSIXct(sunrise, format = "%H:%M") ___Burgebrach["ss"] <- as.POSIXct(sunset, format = "%H:%M") ___Burgebrach["timestamp"] <- align.time(___Burgebrach$sunrise, 60*10) ___Burgebrach <- ___Burgebrach[c("timestamp", "sr", "ss")] locsrss <- ggplot(___Burgebrach, aes(x=___Burgebrach$timestamp)) + geom_line(aes(y=___Burgebrach$sr)) + geom_line(aes(y=___Burgebrach$ss)) + labs(title = " Sonnenauf-/Sonnenuntergang - ___Burgebrach 2025", x = "Datum", y = "Zeit") pdf("___Burgebrach_SA_SU.pdf", paper="a4r", width=11) locsrss dev.off() png(filename="___Burgebrach_SA_SU.png", width = 1400, height = 800, units = "px") locsrss dev.off() ___Burgebrach["Sonnenaufgang"] <- strftime(___Burgebrach$sr, format="%H:%M") ___Burgebrach["Sonnenuntergang"] <- strftime(___Burgebrach$ss, format="%H:%M") write.table(___Burgebrach, file="___Burgebrach_SaSu.csv", dec=',', sep=';', row.names=FALSE)