plotProfile: Visualizing Profiles of Scores

Description Usage Arguments Details Author(s) See Also Examples

Description

A function for plotting entire profiles of scores for individual observations (e.g., personality profiles)

Usage

1
2
plotProfile(dat, rows = NULL, col = "black", grid = TRUE, grid.col = "lightgray",
	 grid.lty = "dotted", item.names = NULL, ...)

Arguments

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.

Details

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.

Author(s)

Ryne A. Sherman

See Also

scoreTest meanif scoreItems

Examples

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")

multicon documentation built on May 2, 2019, 3:18 a.m.