starplotObserved {Ratings}R Documentation

Observed Data Starplots of Ratings Data

Description

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

Usage

starplotObserved(Y, catnames, starcol = "darkgray", starsize = 0.2, ...)

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.
starcol Color of stars.
starsize Positive scalar that regulates the size of the stars in the plot.
... 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, starplotModelBased, barplotObserved

Examples

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

data(Mondo)

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

starplotObserved(Mondo.sub, starcol="green",
                  catnames = c("Awful", "Poor", "Average", 
                               "Very Good", "Great"))

## End(Not run)

[Package Ratings version 0.1-1 Index]