# \donttest{
library(stochcorr)
data(wind)
if(requireNamespace("ggplot2")){
library(ggplot2)
ggplot2::ggplot(wind, aes(x = Date, y = Dir)) +
geom_line() +
labs(title = "Sotavento Wind Farm",
x = "Date",
y = "Wind Direction") +
scale_x_datetime(date_labels = "%d-%b", date_breaks = "2 day") +
theme_test() +
theme(
text = element_text(size = 15),
axis.text.x = element_text(angle = 90, hjust = 1)
)
}
a<-circdiff(wind$Dir,10/1440,"vmp")
a
b<-circdiff(wind$Dir,10/1440,"cbm")
b# }
Run the code above in your browser using DataLab