Closed Maschette closed 2 years ago
if (any(y > 180)) stop("You muppet!")
It is actually a SOplot issue not SOautomap
library(SOmap)
#> Loading required package: raster
#> Loading required package: sp
#this works fine:
SOmap_auto(x=c(175, -175), y=c(-60, -50))
#> old-style crs object detected; please recreate object with a recent sf::st_crs()
#> Warning in image.default(x = x, y = y, z = value, useRaster = useRaster, :
#> unsorted 'breaks' will be sorted before use
#So does this
SOplot(x=c(178, -175), y=c(-50, -60), col=2)
#> No projection provided, assuming longlat
#this works fine:
SOmap_auto(x=c(175, 200), y=c(-60, -50))
#> old-style crs object detected; please recreate object with a recent sf::st_crs()
#> Warning in image.default(x = x, y = y, z = value, useRaster = useRaster, :
#> unsorted 'breaks' will be sorted before use
#So does this
SOplot(x=c(178, 200), y=c(-50, -60), col=2)
#> No projection provided, assuming longlat
Created on 2021-11-16 by the reprex package (v2.0.1)
This issue has been resolved by magic
It would be great if we could make SOauto_map work out how to deal with 0-360 lat long.