AustralianAntarcticDivision / SOmap

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

SOgg to handle `SOmap_legend` objects #59

Closed raymondben closed 4 years ago

raymondben commented 5 years ago

Implement a gg converter for SOmap_legend objects

raymondben commented 4 years ago

https://github.com/AustralianAntarcticDivision/SOmap/commit/a62b15a30e66a105b23b8bb61e5ff53b7680cd16 but SOgg isn't yet handling an extra legend that has been SOmerged into a SOplot object:

   mymap <- SOmap(bathy_legend = "space")
   mylegend <- SOleg(x = runif(100), position = "topright", col = viridisLite::viridis(80),
                     breaks = c(0.1, 0.2, 0.5, 0.9), trim = -45, label = "Thing",
                     rnd = 1, type = "continuous")
   mymgmt <- SOmanagement(eez = TRUE, basemap = mymap)
   merged <- SOmerge(mymap, mymgmt, mylegend)
   SOgg(merged)
raymondben commented 4 years ago

Ooooh, so close https://github.com/AustralianAntarcticDivision/SOmap/commit/b7b9b5d8a1a9ac058849fea823b29d24f419277a still needs legend name added in gg version

raymondben commented 4 years ago

https://github.com/AustralianAntarcticDivision/SOmap/commit/35480a24cb54efe8370b143a15c2380f4c000405