{"id":83,"date":"2007-03-11T15:25:35","date_gmt":"2007-03-11T20:25:35","guid":{"rendered":"http:\/\/raffy.ch\/blog\/2007\/03\/11\/parallel-coordinates-in-r\/"},"modified":"2007-03-11T15:29:44","modified_gmt":"2007-03-11T20:29:44","slug":"parallel-coordinates-in-r","status":"publish","type":"post","link":"https:\/\/raffy.ch\/blog\/2007\/03\/11\/parallel-coordinates-in-r\/","title":{"rendered":"Parallel Coordinates in R"},"content":{"rendered":"<p>I am still playing with R to generate graphs. I have to say, after some initial frustrations, I think I start to get it. Here are some steps to generate parallel coordinate graphs in R:<\/p>\n<p><code>Dataset < - read.table(\"\/home\/ram\/foo2_200.csv\", header=FALSE, sep=\",\")\nrequire(lattice)\nparallel(~Dataset,data=Dataset)<\/code><\/p>\n<p>That's the very basics to generate a parallel coordinate plot. An interesting addition to this is to use a different command to generate the parallel coordinate plots:<\/p>\n<p><\/code><code>parallel(~Dataset|Dataset$V4,data=Dataset)<\/code><\/p>\n<p>This will generate n different parallel coordinates, one for each of the values in Dataset$V4 [where Dataset$V4 is the fourth column of our data].<\/p>\n<p>Following is my last attempt. I wanted to change the axis labels. The y-axis I was sucessful in changing. For the x-axes, I was not able to change the labeling. I guess this is precisely the problem with R. Simple things are fairly simple to do, but if you want to change specific details, it gets quite messy quite quickly.<\/p>\n<p><code>parallel(~Dataset,data=Dataset,varnames=c(\"Source\",\"Port\",\"Destination\",\"Action\"))<\/code><\/p>\n<p><img decoding=\"async\" alt=\"Parallel Coordinate Graph in R\" title=\"Parallel Coordinate Graph in R\" src=\"http:\/\/raffy.ch\/blog\/parallel.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am still playing with R to generate graphs. I have to say, after some initial frustrations, I think I start to get it. Here are some steps to generate parallel coordinate graphs in R: Dataset < - read.table(\"\/home\/ram\/foo2_200.csv\", header=FALSE, sep=\",\") require(lattice) parallel(~Dataset,data=Dataset) That's the very basics to generate a parallel coordinate plot. An interesting [&hellip;]\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-visualization"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":0,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"wp:attachment":[{"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}