barplotObserved {Ratings}R Documentation

Observed Data Barplots of Ratings Data

Description

Creates the observed data barplot discussed in Ho and Quinn (n.d.).

Usage

barplotObserved(Y, catnames, barcol = "darkgray", top.limit = 0.5, 
                scale.factor = 1, ...)

Arguments

Y Matrix of data to be analyzed. Entries must be integers from 1, ..., C or NA where C is the number of ordinal categories. Raters are on the rows and products are on the columns.
catnames A character vector of names for the rating categories. Should have C elements. First element should give the name for a rating of 1, second element the names for a rating of 2, etc.
barcol The color for the bars in the barplot.
top.limit The maximum value of the y axis. Should be between 0 and 1.
scale.factor Scaling factor that adjusts the scaling of the y axis. Any positive value is allowed.
... Other arguments to plotting functions.

References

Ho, Daniel E. and Kevin M. Quinn. forthcoming. "Improving the Presentation and Interpretation of Online Ratings Data with Model-based Figures." The American Statistician.

See Also

ordrating, barplotModelBased, starplotObserved

Examples

## Not run: 
## Mondo Times example from Ho & Quinn (nd).

data(Mondo)

## just the first 12 cols
Mondo.sub <- Mondo[,1:12]

barplotObserved(Mondo.sub, top.limit=1, scale.factor=.7,
                  catnames = c("Awful", "Poor", "Average", 
                               "Very Good", "Great"))

## End(Not run)

[Package Ratings version 0.1-1 Index]