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