Chapter 4 | Exercise 2
Create a bar plot, a pie chart and a dot chart with the proportions of levels in the factor subj
from the data set sent
.
Create a bar plot:
> barplot(subjects, main = "Bar plot of subject type frequencies", xlab = "Semantic class of subjects", ylab = "Frequency")
Create a pie chart:
> pie(subjects, main = "Pie chart of subject type frequencies")
Finally, create a dot chart:
> dotchart(subjects, main = "Dot chart of subject type frequencies", xlab = "Frequency", ylab = "Semantic class of subjects")