Home > Science > Biology > Genetics > Population Genetics > Heterozygosity > Figure 3


TeX source code:

\documentclass[border=2pt]{standalone}
\usepackage{pgfplots}

% convert to png with
% pdftoppm -png -r 150 out.pdf > out.png

\begin{document}
 \begin{tikzpicture}[scale=2]
 \draw[->] (-0.1,0) -- (1.5,0) node[right] {$\theta$};
 \draw[->] (0,-0.1) -- (0,1.5) node[above] {$H$};
 \draw[dashed] (-0.1,1) -- (1.5,1);
 \draw (1,-0.1) -- (1,0);
 \draw (0,-0.1) node[below] {$0$};
 \draw (-0.1,0) node[left] {$0$};
 \draw (-0.1,1) node[left] {$1$};
 \draw (1,-0.1) node[below] {$1$};
 \draw[scale=1,domain=0:1.5,smooth,variable=\x,blue] plot ({\x},  {\x/(\x+1)});
 \draw[scale=1,domain=0:1.5,smooth,variable=\x,red] plot ({\x},  {\x});
 \draw[blue] (1.5,0.625) node[right] {IA};
 \draw[red] (1.5,1.6) node[right] {IS};
 \draw[very thin, gray] (0,0.1)--(0.1,0.1) -- (0.1,0);
 \end{tikzpicture}
\end{document}

Floyd A. Reed, December 12, 2020

AboutContactPrivacy