You can use
barplot function to create bar plots. For example, following example creates bar
plot for heights of students.
Height
|
Number Of Students
|
<130
|
5
|
130-135
|
2
|
136-145
|
4
|
>145
|
8
|
> heights <- table(c("<130", "<130", "<130", "<130", "<130", "130-135", "130-135", "136-145", "136-145", "136-145", "136-145", ">145", ">145", ">145", ">145", ">145",">145",">145", ">145" )) > > barplot(heights)
No comments:
Post a Comment