Description Usage Arguments Details Author(s) See Also Examples
A function for plotting entire profiles of scores for individual observations (e.g., personality profiles)
1 2 |
dat |
A data.frame containing the profiles to be plotted. |
rows |
A numeric vector indicating the desired rows in dat to be plotted. If left NULL, then all rows in dat will be plotted. |
col |
A character vector indicating the colors for the lines. One color for each row should be provided. |
grid |
A logical indicating if a vertical grid on the x-axis tick marks should be drawn. |
grid.col |
A character element indicating the color of grid. |
grid.lty |
A character element indicating the line type of grid. |
item.names |
A character vector indicating the names for the items. If left NULL, the names provided in dat will be used. |
... |
Other graphical arguments passed to the plot() function. |
This function plots the profile of scores across all of the variables (constructs) in dat. This is useful for quickly spotting similarity and differences in profiles for two or more observations.
Ryne A. Sherman
1 2 3 4 5 6 7 8 | data(bfi)
keys.list <- list("agree"=c(-1,2,3,4,5),
"conscientious"=c(6,7,8,-9,-10),"extraversion"=c(-11,-12,13,14,15),
"neuroticism"=c(16,17,18,19,20),"openness"=c(21,-22,23,24,-25))
out <- scoreTest(bfi, keys.list, nomiss=0, maxScore=6, minScore=1)
plotProfile(out, rows=1:3, xlab="", ylab="Score", col=c("red", "blue", "green"),
main="Big 5 Profiles for Three Subjects", ylim=c(1,6), item.names=names(out))
legend("bottomleft", legend=rownames(bfi)[1:3], lty=1, col=c("red", "blue", "green"), bty="n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.