draw plot after read.capthist command

28 views
Skip to first unread message

Cheryl Lohr

unread,
Jun 14, 2019, 12:00:37 AM6/14/19
to secr

Hi folks

I was wondering if you could help me to modify some code so that I can plot 23 sessions of boodie captures in a nice format? It looks like there is a significant amount of decline in the movement of boodies among traps over the sessions. This may or may not be associated with the process of defining new home-ranges following translocation of boodies or just an increase in boodie abundance over the years. I want to decrease the point size and text size in these graphs, but cex is an unused command in the read.capthist command and it doesn’t appear to work in subsequent plot command. Any ideas for changing the formats of these plots will be greatly appreciated.

 

BL<-read.capthist(captfile="2010_2019_BL_SECR_capturedata.txt",

                  trapfile = "2010_2019_BL_SECR_traplocs.txt",

                  detector = "multi",

                  fmt=c("trapID","XY"),

                  noccasions=123)

summary(BL)

##Plot your trap locations only, may look weird unless par(mfrow=c(1,1))

plot(traps(BL))

##Plot your animal tracks across your trap locations

plot(BL,tracks=TRUE)

#####################################

#Try exporting many graphs as one pdf

pdf("Export_Plots.pdf", width = 6 , height = 3, title = "Plot boodie movement among traps 2010-2019", cex.main=0.5)

par(mfrow=c(3,3))

par (mar=c(1,0.1,1,0.1))

plot(BL,tracks=TRUE, pch=1, cex=0.1)

dev.off()

 

Thanks,

Cheryl

 

Cheryl Lohr

Research Scientist, Animal Science Program

DBCA Biodiversity and Conservation Science

Location: 37 Wildlife Pl, Woodvale, WA 6026

Mail: Woodvale Wildlife Research Centre

Locked Bag 104 Bentley Delivery Centre

WA 6983

Ph: 94055150 (internal ext 5750)

Mob: 0407335004

 

20170208_DBCA Signature block updated

 


This message is confidential and is intended for the recipient named above. If you are not the intended recipient, you must not disclose, use or copy the message or any part of it. If you received this message in error, please notify the sender immediately by replying to this message, then delete it from your system.

Murray Efford

unread,
Jun 14, 2019, 12:41:08 AM6/14/19
to secr
Hi Cheryl
Check out ?plot.capthist and ?plot.traps. You'll find arguments detpar, cappar etc. that are lists of graphic arguments that control different components of the plot. Trial and error may be needed!
Murray
Reply all
Reply to author
Forward
0 new messages