Closed j-harbin closed 2 years ago
The values of longitudelim
and latitudelim
are not being propagated to mapPlot()
. They could be, though. Note that you did not give projection=TRUE
and so you are not getting a call to mapPlot()
. If you give projection=TRUE
you get Molleweide proj (sp?); here is how to get Robinson
plot(index2021, mapControl=list(bathymetry=FALSE, longitudelim=c(-100,0), latitudelim=c(0,80),projection="+proj=robin"))
but note, as I said that the lon and lat limits are not being sent to mapPlot()
. Using mapPlot()
is really quite tricky, because a lot of projections need extra parameters to not look terrible in a particular region, and also because coastlines can be drawn terribly in many projections.
It would be easy to add longitudelim
and latitudelim
. You could try, @j-harbin, and make a PR, if you like. Obviously, it requires both coding and documentation writing. The latter can be trickier than the former.
For myself, I'd be very happy to use the argoFloats methodology to find a region but then to draw diagrams separately with oce
calls. Once you have lons and lats, it's no longer an argofloat-specific problem, but a general one, and oce has tools for that.
@dankelley wrote:
For myself, I'd be very happy to use the argoFloats methodology to find a region but then to draw diagrams separately with oce calls. Once you have lons and lats, it's no longer an argofloat-specific problem, but a general one, and oce has tools for that.
I agree with this -- we should try to avoid duplicating tools too much. The plot method for argoFloats is handy, but it isn't necessarily made to be 100% general tool for everything up to publication-quality plots.
The Stale-bot has marked this issue as Stale, because no new comments have been added in the past 30 days. Unless a comment is added within the next 7 days, the Stale-bot will close the issue. The purpose of these automated actions is to prevent the developers from forgetting about unattended tasks. Note that adding a "pinned" label will turn this action off for a given issue.
Hi All -
I've finally found some time to look at these dated issues. I agree with all of your above comments. Also, the user has the option to do the following, so I'm totally okay with that. I'm (re)-closing this issue.
library(argoFloats)
data(index)
plot(index, which="map", ylim=c(27,28))
Created on 2022-01-20 by the reprex package (v2.0.0)
I was looking at Argo data for the last month, and then I wanted to zoom in on a specific area. Similar to
mapPlot
inoce
, I expected to be able to set mylatitudelim
orlongitudelim
. I searched in the docs thinking they must be named something else inargoFloats
(ie.xlim
andxlim
), but based on the docs it seems the user actually doesn't have that option.It is true that the user could simply use
mapPlot
and thenmapPoints
to display the desired points, but that kind of defeats the purpose of the specialized map plot for argoFloats. Thoughts on this, Team?