detectionMaps function

170 views
Skip to first unread message

la...@wwf.panda.org

unread,
Dec 21, 2016, 2:33:00 AM12/21/16
to camtrapR
Hi Jürgen,

For species presence map, am hoping the detectionMaps function could be expanded to display spatial polygon. (See image attached)

Thanks :)
Image1.png

Juergen Niedballa

unread,
Dec 21, 2016, 11:18:23 AM12/21/16
to camtrapR
Hi,
thanks for the suggestion. This should be relatively easy to implement. I will try to include it in the next release.
Jürgen

Chloe Nouzille

unread,
Jun 9, 2022, 2:36:38 PM6/9/22
to camtrapR
Hello,

I was wondering how you made your map look so nice?

 Is all that done just with the detectionMaps function? My legend right now is not particularly legible...

deerMap <- detectionMaps(CTtable = camtraps,
                          recordTable = deerRec, 
                          Xcol = "utm_x",
                          Ycol = "utm_y",
                         backgroundPolygon = poly3,
                          stationCol = "Station",
                          speciesCol = "Species",
                          writePNG = FALSE,
                          plotR = TRUE,
                          printLabels = F,
                          richnessPlot = F,
                          addLegend = TRUE        
)


Thank you!!

-Chloe
testdeerdetmap.png

Juergen Niedballa

unread,
Jun 17, 2022, 1:22:21 AM6/17/22
to camtrapR
Hi Chloe,
the detectionMaps function is very basic. The prettier map above was created with GIS software, which I'd recommend over detectionMaps for publication-quality figures. detectionMaps can create shapefiles though, so you get the input for maps in GIS. 
For prettier maps in R, try the mapview example from vignette 4. 
Best regards,
Jürgen

Juergen Niedballa

unread,
Jun 17, 2022, 11:11:23 PM6/17/22
to camtrapR
When setting argument writeShapefile = TRUE, the output of detectionMaps is an sf object (from the sf package), which can be plotted easily using ggplot2 via geom_sf(). One can also add other spatial layers to these plots with further calls to geom_sf().
Reply all
Reply to author
Forward
0 new messages