Entering edit mode
3.2 years ago
Rob
▴
170
Hi friends I wanna plot a parallel coordinate doiagram. I want one of the lines (row number 60) to be in different color. How can I do it? I have 269 rows and 10 columns This is my code:
parcoords(
data[,1:10],
reorderable = F,
brushMode = '1D-axes', color = "red")
Hi Alex Thanks for responding I did not understand and cannot get result from the link you sent. Is there any other solution for this?
You have to pass the R command an array of colors, as a parameter when making the plot. In this array, 59 entries are of one color. The 60th value is another color. That's really all there is to it. There's no magic here. Try out the sample in the link so that you understand how it works, and then manipulate it to try to get to the result you want. That's a good way to learn.