I am trying to use MASS parcoord (R) to illustrate a dataset with ~2000 rows (observations) with 11 variables and 7 factors to which I assign colours. I have 2 problems with the graphical output:
- the font size of variable names are too large and would like to half them. I am using the code:
parcoord(data[,3:13], col=data$K7a, var.label=TRUE) # factors are in column K7a, variables are in cols 3:13
- Then I want to highlight one of these factor, keeping the other factors in the background with a light colour or make them invisible, or transparent. I use the following:
K2 <- ifelse(data$K7a=="2","red","white" ) # i want to highlight Factor 2
parcoord(data[,3:13] , col=K2 )
but the red lines are masked by the white ones in some part of the graph, that look like they are in the foreground and the red lines go to the background. How can I overcome this problem ? I used "NULL" to replace "white"but doesn't solve the problem.