AustralianAntarcticDivision / SOmap

Southern Ocean round maps
https://australianantarcticdivision.github.io/SOmap/
24 stars 6 forks source link

SOauto_map hating on rasters #42

Closed Maschette closed 5 years ago

Maschette commented 5 years ago
library(SOmap)
#> Loading required package: raster
#> Warning: package 'raster' was built under R version 3.5.3
#> Loading required package: sp
SOauto_map(x=ice, gratpos = c("left", "top"))
#> Warning in SOauto_map(x = ice, gratpos = c("left", "top")): input 'x'
#> is a raster, converting to an extent for a simple plot of input_points/
#> input_lines

Created on 2019-05-10 by the reprex package (v0.2.1)

mdsumner commented 5 years ago

So after looking at this, I agree - it is hating on rasters!

What do you think it should do? I think it should plot the raster, use the raster for the structure as the target background grid.

mdsumner commented 5 years ago

Better now

library(SOmap)

SOauto_map(x=ice, gratpos = c("left", "top"))
SOplot(ice, col = palr::icePal(100))

Created on 2019-06-02 by the reprex package (v0.3.0)