data(Adult)
# the following example compares the item frequencies
# of people with a large income (boxes) with the average in the data set
Adult.largeIncome <- Adult[Adult %in%
"income=large"]
# simple plot
itemFrequencyPlot(Adult.largeIncome)
# plot with the averages of the population plotted as a line
# (first 72 variables/items)
itemFrequencyPlot(Adult.largeIncome[, 1:72],
population = Adult[, 1:72])
# plot of deviations from population mean (horizontal bars)
itemFrequencyPlot(Adult.largeIncome[, 1:72],
population = Adult[, 1:72],
deviation = TRUE, horiz = TRUE)
Run the code above in your browser using DataLab