I wanna present my crosswalk results for 5 different crosswalks in a combined table with the ggplot2 package.
I've created a data.frame with all results that need to be displayed:
crosswalk <- data.frame(subset(fsdiscDET,, (1:2)),(subset(fsdiscDIS,, 2)),
(subset(fsdiscANT,, 2)), (subset(fsdiscPSY,, 2)),(subset(fsdiscANPICD,, 2)),
(subset(fsdiscANPID5,,2)))
#Define Column names for the data frame named "crosswalk
colnames(crosswalk) <- c("SumScore", "ThetaDET", "ThetaDIS","ThetaANT", "ThetaPSY",
"ThetaANPiCD", "ThetaPID5BF M")
The table is constructed like this:
SumScores ThetaDET ThetaDIS ThetaANT ThetaPSY ThetaANPiCD ThetaPID5BF M
0 -2 ... ....
1
2
3
4
5
6
7
8
Unfortunately, I can't show my real results but the table is filled with scores, that should be displayed as a crosswalk from the sum scores, so here is some example data: (first row)
> dput(head(crosswalk, 1))
structure(list(SumScore = 0L, ThetaDET = -0.880871248855981,
ThetaDIS = -0.594351208632866, ThetaANT = -0.463495518249115,
ThetaPSY = -0.471562212797643, ThetaANPiCD =
-0.850865132469677,
`ThetaPID5BF M` = -0.91391979254119), row.names = 0L, class =
"data.frame")