{"action":"closed","issue":{"url":"https://api.github.com/repos/dankelley/oce/issues/615","labels_url":"https://api.github.com/repos/dankelley/oce/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/dankelley/oce/issues/615/comments","events_url":"https://api.github.com/repos/dankelley/oce/issues/615/events","html_url":"https://github.com/dankelley/oce/issues/615","id":64961107,"number":615,"title":"permit map projections for topo objects","user":{"login":"dankelley","id":99469,"avatar_url":"https://avatars.githubusercontent.com/u/99469?v=3","gravatar_id":"","url":"https://api.github.com/users/dankelley","html_url":"https://github.com/dankelley","followers_url":"https://api.github.com/users/dankelley/followers","following_url":"https://api.github.com/users/dankelley/following{/other_user}","gists_url":"https://api.github.com/users/dankelley/gists{/gist_id}","starred_url":"https://api.github.com/users/dankelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankelley/subscriptions","organizations_url":"https://api.github.com/users/dankelley/orgs","repos_url":"https://api.github.com/users/dankelley/repos","events_url":"https://api.github.com/users/dankelley/events{/privacy}","received_events_url":"https://api.github.com/users/dankelley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dankelley/oce/labels/mapping","name":"mapping","color":"fad8c7"},{"url":"https://api.github.com/repos/dankelley/oce/labels/topo","name":"topo","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"dankelley","id":99469,"avatar_url":"https://avatars.githubusercontent.com/u/99469?v=3","gravatar_id":"","url":"https://api.github.com/users/dankelley","html_url":"https://github.com/dankelley","followers_url":"https://api.github.com/users/dankelley/followers","following_url":"https://api.github.com/users/dankelley/following{/other_user}","gists_url":"https://api.github.com/users/dankelley/gists{/gist_id}","starred_url":"https://api.github.com/users/dankelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankelley/subscriptions","organizations_url":"https://api.github.com/users/dankelley/orgs","repos_url":"https://api.github.com/users/dankelley/repos","events_url":"https://api.github.com/users/dankelley/events{/privacy}","received_events_url":"https://api.github.com/users/dankelley/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-03-28T16:30:44Z","updated_at":"2015-08-17T11:49:50Z","closed_at":"2015-08-17T11:49:50Z","body":"There is a question of whether this should be done by altering ``plot.topo()`` or ``mapPlot()``. @richardsc had the idea of modifying the latter, and I've done that in a (very provisional) branch called ``issue611``. However, as the work came together, it seemed to me that users would find it easier for ``plot.topo()`` to get 3 new args (``projection``, ``parameters`` and ``orientation``) than it would for ``mapPlot()`` to get a whole slew of arguments for topo.  I think that generally it makes sense for the generic for a data type to be the place to look for plotting that data type.\r\n\r\nTo show that I'm getting somewhere, the code\r\n```{r}\r\nlibrary(marmap)\r\nlibrary(oce)\r\ntry(source(\"~/src/oce/R/map.R\"))\r\ntry(source(\"~/src/oce/R/topo.R\"))\r\n#a <- getNOAA.bathy(-90, 0, 00, 60, resolution=60)\r\na <- getNOAA.bathy(-120, 0, 0, 80, resolution=2*60)\r\nt <- as.topo(a)\r\nif (!interactive()) png(\"611B.png\")\r\npar(mfrow=c(2, 1))\r\nplot(t, xlim=c(-120, 0), location=\"left\")\r\nmapPlot(t, proj=\"+proj=lcc +lon_0=-60 +lat_0=20 +lat_1=20\")\r\nif (!interactive()) dev.off()\r\n```\r\nproduces results like below, with the ``issue611`` branch.\r\n![611b](https://cloud.githubusercontent.com/assets/99469/6881853/a199cde2-d54e-11e4-8f3e-22136adf4092.png)\r\n"}}