courtiol / IsoriX

This is the gthub repository dedicated to the development of the R package IsoriX
12 stars 5 forks source link

reexport some more functions #98

Open courtiol opened 5 years ago

courtiol commented 5 years ago

Let us reexport all functions needed to compile the IsoriX presentation of the summer school (soon on GitHub) so that it is no longer necessary to load some extra packages. One difficulty will be the plotting function for SpatialPolygons...

courtiol commented 5 years ago
library(rasterVis)
levelplot(ElevWestPal, margin = FALSE) +
  layer(sp.polygons(CountryBorders, col = "white")) +
  layer(sp.polygons(OceanMask, fill = "cyan")) +
  xyplot(gnip_aggr_isorix$lat ~ gnip_aggr_isorix$long, col = "pink")

Working with Marco shows that the code above does not work without the library(). I must fix that...

courtiol commented 1 year ago

For reexporting the plotting function for the SpatialPolyongs, note that sp:::plot.SpatialPolygons is no exported so, I may have to declare my own method plot.SpatialPolygons that would call plot().

I am also no longer 100% confident that reexporting all kinds of functions and methods is a good idea.

courtiol commented 9 months ago

If you do think this issue matters to you, please add a thumb up!