Jeevan Rai

My thoughts, opinions and experiences

Category: Wildlife and conservation

  • Two y-axes in R

    Two y-axes in R

    Recently, I had to plot two axes in a single graph. Like always, I googled. Countless solutions but most of them were not what I was looking for. These worked. But I didn’t want a complicated solution. Finally, two sources worked for me. However, I had to modify these codes to meet my needs. So,…

  • How to collapse Detection History for Occupancy Analysis?

    How to collapse Detection History for Occupancy Analysis?

    Recently a friend of mine asked me if I could help him collapse his detection history. He want to make 5 days as a single occassion. You might want to do this for vairous reasons. The most important one is that you want to get your detection probability higher. Suppose you detected your species once…

  • Simulation for Sites and Replicates for Occupancy

    Simulation for Sites and Replicates for Occupancy

    “How many camera traps should I put?” “How many days should I leave my camera traps for?” Usually when people are doing occupancy estimates, these are the questions that many have. I had one. One way to answer this is doing simulations. So, I tried. I tried 1000 simulations for three conditions. 1. Low occupancy…