ctmm-initiative / ctmmweb

Web app for analyzing animal tracking data, built upon ctmm R package
http://biology.umd.edu/movement.html
GNU General Public License v3.0
32 stars 21 forks source link

creating maps for location, home range #35

Closed xhdong-umd closed 6 years ago

xhdong-umd commented 6 years ago

I'm working on maps for animal locations, home range/occurrence polygons.

@chfleming , the SpatialPolygonsDataFrame.UD returned the polygon coordinates as relative x,y values (Two-Point Equidistant projection?), not the absolute coordinates. There are reference coordinates in standard parallels of proj4string, so supposedly this should work, indeed the shapefiles(which have same structure) can be plotted in right location.

screen shot 2017-10-05 at 4 12 22 pm

However I'm having trouble plotting SpatialPolygonsDataFrame in right location.

screen shot 2017-10-05 at 4 12 37 pm

Should I reproject the data?

NoonanM commented 6 years ago

Yes, I used ggmap to produce the figures, but you're right leaflet is much more useful when exploring the data.

My thinking was that once users had found a static map they found interesting they could export this in publication quality. Of course, if the logistics behind this option is too complicated, then we can drop that feature. Many users will be able to do this by exporting the shape files and doing similar in GIS.

xhdong-umd commented 6 years ago

Do you guys find these features useful?

screen shot 2017-11-06 at 4 18 13 pm
NoonanM commented 6 years ago

I think measure would be useful, not so sure about grid.

xhdong-umd commented 6 years ago

I found another option to add grid with labels.

screen shot 2017-11-07 at 9 06 31 am
xhdong-umd commented 6 years ago

The measure can measure lines or polygons

screen shot 2017-11-07 at 10 03 04 am
xhdong-umd commented 6 years ago

Point map now can take the bounds of heatmap. Though it might have a lower zoom level, which seemed to be a limit of current existing Shiny support on leaflet.

xhdong-umd commented 6 years ago

I added map to report and save features:

xhdong-umd commented 6 years ago

There seemed to be some problems with applying heatmap bounds to point map in hosted app. However I can't find any error message or log entries for this. I'll look at this tomorrow.

xhdong-umd commented 6 years ago

I think most of map features are completed except

xhdong-umd commented 6 years ago

@chfleming The dAICc column is calculated from summary on list of models, but there is no summary function for list of home ranges, so this column is not included in the home range model summary table now. Should we take the dAICc value from previous page and add to the home range summary table?

vestlink commented 6 years ago

Is it under consideration to be able to mix both the home range and occurrence distribution maps as a single map. I'm aware that they are two difference distribution, but it could be informative to visualize.

xhdong-umd commented 6 years ago

The occurrence distribution plot is rather complex. Currently it's a ctmm function implemented with base plot. To convert it into a leaflet map will be quite difficult, basically need to implement all details again in a different platform. I'm not sure if that's doable or worth the effort.

vestlink commented 6 years ago

I agree.

On Mon, Dec 4, 2017 at 2:47 AM, xianghui dong notifications@github.com wrote:

The occurrence distribution plot is a quite complex. Currently it's a ctmm function implemented with base plot. To convert it into a leaflet map will be quite difficult, basically need to implement all details again in a different platform. I'm not sure if that's doable or worth the effort.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ctmm-initiative/ctmm-webapp/issues/35#issuecomment-348840140, or mute the thread https://github.com/notifications/unsubscribe-auth/AT0_HF-WhcwQTIYCjGhq6GS5gSqO4miPks5s809KgaJpZM4PvorP .