is it possible to center the x axis on midnight for nocturnal species

5 views
Skip to first unread message

Gabriel Naudet

unread,
Jun 10, 2024, 2:38:41 PMJun 10
to camtrapR
Hello Juergen,

I would like to know if is it possible to center the x axis on midnight for nocturnal species with the activity density plot ?

Thanks you for your answer

Here is my code :
ceb_oli <- activityDensity( df_obs_ce,
                            "Cebus olivaceus",
                            allSpecies = FALSE,
                            speciesCol = "Species",
                            recordDateTimeCol = "DateTimeOriginal",
                            recordDateTimeFormat = "ymd HMS",
                            plotR = TRUE,
                            writePNG = FALSE,
                            plotDirectory,
                            createDir = FALSE,
                            pngMaxPix = 1000,
                            add.rug = TRUE)
activite_journaliere_vf.png

Jürgen Niedballa

unread,
Jun 10, 2024, 8:00:46 PMJun 10
to Gabriel Naudet, camtrapR
Hello,
yes, activityDensity accepts additional arguments which are internally passed to densityPlot() in the overlap package, which has an argument "xcenter". Set it to 
xcenter = "midnight"

See:

and the description of ... in the help of 
?activityDensity


--
You received this message because you are subscribed to the Google Groups "camtrapR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camtrapr+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/camtrapr/291ea719-2d99-4c58-909f-b524c3fb2875n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages