profileplot.Rd
The profileplot
function creates a profile plot for a matrix or dataframe with multiple scores or subscores using ggplot
function in ggplot2
package.
profileplot(
form,
person.id,
standardize = TRUE,
interval = 10,
by.pattern = TRUE,
original.names = TRUE
)
A matrix or dataframe including two or more subscores.
A vector that includes person ID values (Optional).
If not FALSE, all scores are rescaled with a mean of 0 and standard deviation of 1. Default is TRUE.
The number of equal intervals from the mimimum score to the meximum score. Default is 10. Ignored when by.pattern=FALSE.
If TRUE, the function creates a profile plot with level and pattern values using ggplot2. Otherwise, the function creates a profile plot showing profile scores of persons using the base graphics in R. Default is TRUE.
Use the original column names in the data. Otherwise, columns are renamed as v1,v2,.... Default is TRUE.
The profileplot
functions returns a score profile plot from either ggplot or the base graphics in R.