In: Statistics and Probability
The lengths (in mm) of a sample of 100 largemouth bass are given in the file LargemouthBass.csv in Digital appendices. (You can find this file under the “Digital Appendices” link on Blackboard.) Use R construct a frequency distribution table and histogram of these data.
length(mm) |
210 |
241 |
371 |
347 |
90 |
175 |
188 |
349 |
304 |
310 |
325 |
383 |
307 |
322 |
115 |
201 |
192 |
192 |
316 |
397 |
285 |
361 |
207 |
387 |
250 |
250 |
350 |
189 |
336 |
193 |
402 |
355 |
175 |
233 |
201 |
115 |
200 |
260 |
368 |
394 |
350 |
200 |
177 |
284 |
175 |
95 |
199 |
320 |
415 |
199 |
240 |
432 |
261 |
394 |
320 |
70 |
180 |
432 |
370 |
338 |
409 |
130 |
166 |
297 |
370 |
289 |
190 |
456 |
336 |
296 |
330 |
114 |
376 |
321 |
312 |
312 |
180 |
331 |
315 |
312 |
295 |
170 |
216 |
281 |
370 |
322 |
200 |
418 |
305 |
269 |
325 |
135 |
152 |
66 |
320 |
258 |
200 |
357 |
420 |
203 |
Let us take bin size 50.
Following is the R code to generate frequency distribution and histogram:
Following is the output :
Histogram:
----------------------------------------