Question: Can anyone help with this? Steps ( A ) : Data Import and Exploration This section is worth 0 . 7 5 total points Note:
Can anyone help with this?
Steps A: Data Import and Exploration
This section is worth total points
Note: The plots and tables generated in this section do not need to be included in your WORD document report.
A Import the cleaned American Kestrel tracking data set. Coordinates here x and y are already projected to the Virginia Lambert coordinate reference system EPSG: You can ignore the lat and long columns. Create a spatial object and display the data in tmap with a satellite background to get a sense of the data. pts
A Create a summary table of the data with the following information: bird name, start date, end date, tracking duration, and total locations. The data have been resampled and filtered for consecutive bursts, so we are seeing now only the periods where birds were tracked at high resolution. pts
A Confirm the collection schedule for this data set by creating an informative plot in ggplot. Various potential plots for this have been demonstrated in the course. Note that birds were tracked only from : am to : pm pts
Steps B: Hidden Markov Model Fitting
This section is worth total points
B Create a move object with the kestrel data remembering to arrange the data appropriately, select only the columns you need, and divide coordinates xy by to put into the scale of kilometers. In addition to the core data columns, create new additional column which is the month of each location. Well use this to test if month of the year influencing behavioral states. pts
B Fit a state Hidden Markov Model, first testing a null model, then testing a model with month as a covariate. Assume, as we did in the code demo, that state is a foraging state, and state is a longer distance, oriented, traveling state. For context, a kestrel home range diameter is about m pts
B Fit a state model with either a null formula, or month covariate depending on which is favored in the state model. pts
B Using the best model that was created so far, calculate the predicted state for each tracking location and add this information to your original kestrel dataset. Remember to make sure all data was arranged by datetime pts
B The male kestrel rabbit spent a lot of time in two different locations which were several kilometers apart. In preparation for creating a home range for this kestrel, remove the locations associated with longdistance travel. Create a ggplot map of this birds tracking locations and movement path, coloring points and paths based on state assignment. Create a second plot showing the points only, now with travel points removed. Include these plots in your report, ideally side by side, inserted into your report as a single tiff file. Save the plot into your outputplots folder. pts
Section A already complete:
kestreldata readRDSdataprocesseddataweekkestrelrsmin.rds
librarysf
kestreldatasf stassfkestreldata, coords cxy crs
librarytmap
tmshapekestreldatasf
tmbubblessize col "blue"
tmbasemapOpenStreetMap
librarydplyr
kestrelsummary kestreldata
groupbyname
summarize
startdate mint
enddate maxt
trackingduration asnumericdifftimeenddate, startdate, units "days"
totallocations n
libraryggplot
librarylubridate
kestreldata kestreldata
mutatehour hourt
ggplotkestreldata, aesx hour
geomhistogrambinwidth fill "skyblue", color "black"
facetwrap~name, scales "freey
labs
title "Collection Schedule of American Kestrel Tracking Data",
x "Hour of Day",
y "Number of Locations"
scalexcontinuousbreaks seq by
thememinimal
# Q: Average tracking length and location counts
avgtrackingduration meankestrelsummary$trackingduration
avglocations meankestrelsummary$totallocations
minlocations minkestrelsummary$totallocations
maxlocations maxkestrelsummary$totallocations
list
averagetrackingdurationdays avgtrackingduration,
averagelocationsperbird avglocations,
minlocationsperbird minlocations,
maxlocationsperbird maxlocations
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
