overlapPlot
from package overlapEst
.activityOverlap(recordTable,
speciesA,
speciesB,
speciesCol = "Species",
recordDateTimeCol = "DateTimeOriginal",
recordDateTimeFormat = "%Y-%m-%d %H:%M:%S",
plotR = TRUE,
writePNG = FALSE,
addLegend = TRUE,
legendPosition = "topleft",
plotDirectory,
createDir = FALSE,
pngMaxPix = 1000,
add.rug = TRUE,
...
)
recordTable
recordTable
recordTable
recordDateTimeCol
in recordTable
writePNG = TRUE
plotDirectory
?overlapPlot
data.frame
with plot coordinates returned by overlapPlot
....
can be graphical parameters, e.g. linetype
, linewidth
, linecol
.activityDensity
# load record table
data(recordTableSample)
# define species of interest
speciesA_for_activity <- "VTA" # = Viverra tangalunga, Malay Civet
speciesB_for_activity <- "PBE" # = Prionailurus bengalensis, Leopard Cat
# create activity overlap plot
activityOverlap (recordTable = recordTableSample,
speciesA = speciesA_for_activity,
speciesB = speciesB_for_activity,
writePNG = FALSE,
plotR = TRUE,
createDir = FALSE,
pngMaxPix = 1000,
linecol = c("red", "blue"),
linewidth = c(3,3),
add.rug = TRUE
)
Run the code above in your browser using DataLab