[R] Color Key in RColorBrewer

2011-04-17 Thread chakri_amateur
Hello, I am using RcolorBrewer for plotting "similarity scores", starting with pair-wise similarity matrix as input. "similarity scores" range is 0 to1, with 1 meaning 100% similar (see two maps below) http://r.789695.n4.nabble.com/file/n3455953/lingosimilarity.jpg http://r.789695.n4.nabble.com/f

Re: [R] How to save heatmap as image or pdf

2011-03-29 Thread chakri_amateur
Kevin Wright-5 wrote: > > ?pdf > I could save heat map to *.ps. Now I have another small query. In enclosed image, column and row labels are overlapping, making image unsuitable for reading. Can anyone direct me to literature/tutorial that explains how to slant labels (at an angle) or how to re

[R] How to save heatmap as image or pdf

2011-03-28 Thread chakri_amateur
Hello Everyone, I am using R for creating heatmap from a square matrix. Below is my script to do so my_map <- read.csv("Desktop/input.csv", sep=",") my_matrix <- data.matrix(my_map) my_heatmap <- heatmap(my_matrix, Rowv=NA, Colv=NA, col = cm.colors(256), scale="column", margins=c(5,10)) I g

Re: [R] send out put to file in R

2010-07-22 Thread chakri_amateur
[...] > compo[[ which.max(sapply(compo, vcount)) ]] That's better command for obtaining Largest Component Sometimes, I get this error while reading pajek file. Does anybody know what this error message means ? g <- read.graph ("F://data/pfu_raw.net", "pajek") Error in read.graph.pajek(file, ..

Re: [R] installing and loading packages

2010-07-17 Thread chakri_amateur
In my Windows XP, I just have to load package every time I open R, but not Install !! There must be some problem during installation ! Chakri -- View this message in context: http://r.789695.n4.nabble.com/installing-and-loading-packages-tp887190p2292339.html Sent from the R help mailing list

Re: [R] send out put to file in R

2010-07-15 Thread chakri_amateur
Dear Gabor Csardi, Thanks. The problem is now resolved. > No wonder, writing computer programs is not just typing in random words > and let the computer figure > out what you are trying to do. At least not yet. Apart from typo errors like "wri" before "write..." and "lecompose" instead of "d

Re: [R] send out put to file in R

2010-07-14 Thread chakri_amateur
rds Chakri --- On Wed, 14/7/10, Peter Ehlers [via R] wrote: From: Peter Ehlers [via R] Subject: Re: send out put to file in R To: "chakri_amateur" Date: Wednesday, 14 July, 2010, 6:23 PM On 2010-07-14 4:04, chakri_amateur wrote: > > Hi > > I am using igraph package in

[R] send out put to file in R

2010-07-14 Thread chakri_amateur
Hi I am using igraph package in R. My goal is to read a network (in "pajek" format) and decompose the network into components. In addition, I am also interested in sending this output to to a file. I am having problem in while writing to a file! my code looks like this g <- read.graph ("F://t

[R] Execute commands in 'R' within PERL Program

2010-07-05 Thread chakri_amateur
Hi, I wrote a program in PERL which creates a file with .net extension (.. xyz.net). I want to call R from within my PERL program, execute 3-line command in 'R', store the output and get back to PERL program. RSPerl is of omegahat is a good software which creates interface between R and PERL, bu