rotateCatalog <- function(Cat,WD,back=FALSE){
if(back){
WDrad <- (180-WD)/180*pi
} else {
WDrad <- WD/180*pi
}
Cat[,":="(x=-x * sin(WDrad) + y*cos(WDrad),y=-x * cos(WDrad) - y*sin(WDrad))]
invisible(Cat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.