Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Coding in RStudio: You genotype three populations of grasshoppers along a north south transect across the European Alps. Near Munich, Germany, north of the Alps

Coding in RStudio:

You genotype three populations of grasshoppers along a north south transect across the European Alps. Near Munich, Germany, north of the Alps you sample 120 individuals; near Innsbruck, Austria, within the Alps you sample 122 individuals; near Verona, Italy, south of the Alps you sample 118 individuals. you find the following number of each genotype:

  • Munich: 6 (a1a1), 33 (a1a2), 81 (a2a2)
  • Innsbruck: 20 (a1a1), 59 (a1a2), 43 (a2a2)
  • Verona: 65 (a1a1), 39 (a1a2), 14 (a2a2)

a) You want to model what will happen to the grashoppers' alleles over time, assuming no other forces than genetic drift are changing allele frequencies. Using for-loop, simulate drift over 2000 generations for each of the three populations in the previous exercise. Make sure that theN and initialpmatch those of the populations. You should make 3 simulations in total, and plot your results.

b) How does the initial p alter the outcome of the simulations? Which population is more likely to go to fixation for either allele?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Classical Mechanics

Authors: R Douglas Gregory

1st Edition

0511159242, 9780511159244

More Books

Students also viewed these Mathematics questions

Question

4 How do you see the future of integrative approaches to coaching?

Answered: 1 week ago