For a larger project on chaos, I am trying to write a short program that graphs the logistic model with different constant values, in this case the constant being "r". A) Is there a way to use Table to graph more than just integer values of R from 1 to 4? B) Is there a way to use Manipulate to visually drag between different values of r to to display chaos?
logistic = Function[n0,
iList = {};
xList = {};
x[0] = 0.01;
For[i = 1, i <= n0, i = i + 1,
x[i] = r*x[i - 1]*(1 - x[i - 1]);
AppendTo[iList, i];
AppendTo[xList, x[i]];
];
]
grapher = Function[
data[];
For[r = 1, r <= 4, r = r + 0.1,
logistic[50];
data[r] = Transpose@{iList, xList};
Clear[iList];
Clear[xList];
];
]
grapher[]
The two lines below are what I was using to try and attempt to plot the data lists with no luck.
Table[ListPlot[data[r]], {r, 1, 4}]
Manipulate[ListPlot[data[r]], {r, 1, 4}]

Table[i,{i,1,2,0.2}]gives{1., 1.2, 1.4, 1.6, 1.8, 2.}. – corey979 Sep 19 '16 at 06:51