subplot(3,1,1);
plotRicker(2.2, 0.5, 40, 'b');
title('Ricker equation: y_{n+1}=y_n e^{2.2 (1-y_n)}. \bf Stable period-2 solution.');

subplot(3,1,2);
plotRicker(2.6, 0.5, 40, 'b');
title('Ricker equation: y_{n+1}=y_n e^{2.6 (1-y_n)}. \bf Stable period-4 solution.');

subplot(3,1,3);
plotRicker(3.4, 0.5, 40, 'b');
title('Ricker equation: y_{n+1}=y_n e^{3.4 (1-y_n)}. \bf Chaotic solution.');
xlabel('n');
