[R] Error while installing xml2 package in R

2019-11-26 Thread Manish Gupta
it require libconv library but installing libiconv-hook-dev does nos solve the problem. how such issue can be solved? -- Manish Gupta (Bioinformatician) [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] How to handle Chinese character in R plot?

2012-11-29 Thread Manish Gupta
Hi, I m working on R plot with Russian label but on windows (adobe) russian text are not visible. Do i need to install some package to view it. pdf(sample.pdf,width = 6.6 ,height = 4.2,family= URWHelvetica, encoding=KOI8-R) x-c(1,2,3,4,5) y-c(2,3,4,5,6)

[R] invalid colour name 'rgb(1.000,0,0)' error

2012-11-23 Thread Manish Gupta
Hi, I m working on latex and R and i need to dynamically generate colors. r-paste(rgb(1.000,,0,,,0,),sep=) # i m generating dynamically by paste command cars - c(1, 3, 6, 4, 9) plot(cars, type=o, col=r) *Error in plot.xy(xy, type, ...) : invalid colour name

[R] How to read jpeg image with russian font in R?

2012-11-22 Thread Manish Gupta
Hi, I m working on R and read one image with russian font using readjpeg() function and write it on pdf (using grid). But russian text is not visible on pdf. How can i fix my pblm? Regards http://r.789695.n4.nabble.com/file/n4650417/pointer.jpg library(JPEG) library(grid) pdf(out.pdf , width =

Re: [R] How to filter xml value in R?

2012-11-14 Thread Manish Gupta
Thanks! It works -- View this message in context: http://r.789695.n4.nabble.com/How-to-filter-xml-value-in-R-tp4649465p4649488.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] How to filter xml value in R?

2012-11-13 Thread Manish Gupta
Hi, I have one xml file. Class Node1 code =1 First node /Node1 Node2 code =1 Second node /Node2 Node3 code =1 Third node /Node3 Node1 code =2 Fourth node /Node1 /Class for (i in 1:xmlSize()) { print(Class[i]) # how can i filter Node1 ? } by using xmlChildren(Class),

[R] How to parse xml with same key name ?

2012-11-01 Thread Manish Gupta
HI, I need to parse an xml where key name are same but values are different. root test Some dummy text /test node id=1one/node node id=2two/node node id=3three/node /root When i use xmlGetAttr() function i always get one as value. How can i get one ,

Re: [R] How to handle Chinese character in R plot?

2012-10-17 Thread Manish Gupta
Hi, I also did the same what u suggested. sessionInfo() R version 2.14.1 (2011-12-22) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=zh_CN.UTF-8 LC_NUMERIC=C [3] LC_TIME=zh_CN.UTF-8LC_COLLATE=zh_CN.UTF-8 [5] LC_MONETARY=zh_CN.UTF-8

Re: [R] How to handle Chinese character in R plot?

2012-10-15 Thread Manish Gupta
I just noticed chinese characters are not printed by using this. Some other characters gets printed on axis as shown below for the sugested solution. x - read.csv(textConnection(名称,类,学生 木材,2,2 表,3,4 笔,4,2 垃圾桶,5,6 杯,6,3), header = TRUE) rownames(x) - x[,1] x - x[,-1] barplot(t(x),

Re: [R] How to handle Chinese character in R plot?

2012-10-15 Thread Manish Gupta
I just founfd one article abt internationalisation of R. Can it be used here. http://r.789695.n4.nabble.com/file/n4646206/image1.png http://r.789695.n4.nabble.com/file/n4646206/image2.png How this can be helpful in plotting graphs in chineese language. Pls help me out as i m in great need.

[R] How to use internationalization of R on Linux?

2012-10-15 Thread Manish Gupta
Hi, I am working on internationalization of R on linux. I have xml file which has data in Chinese language. I need to read it and plot it. How can i do it using internationalization on linux? Regards -- View this message in context:

[R] How to read XML in UTF-8 format?

2012-10-15 Thread Manish Gupta
How to read xml in UTF-8 format. I have one XML file but i want to read it in UTF-8 format. How this is possible? barplot cd name表/name value13/value1 value22.9/value2 /cd cd name笔/name

Re: [R] How to use internationalization of R on Linux?

2012-10-15 Thread Manish Gupta
HI, i need to use simplified chineese. But when i read XML barplot cd name表/name value13/value1 value22.9/value2 /cd cd name笔/name value13.3/value1

Re: [R] How to handle Chinese character in R plot?

2012-10-12 Thread Manish Gupta
But i need to read my data from XML. barplot cd name表/name value13/value1 value22.9/value2 /cd cd name笔/name value13.3/value1 value23/value2 /cd

[R] How to handle Chinese character in R plot?

2012-10-11 Thread Manish Gupta
Hi, I am working on Chinese language plot. But names and labels are in chinese language. How can i print chineese characters as lable in R plot. 名称 类 学生 木材 2 2 表 3 4 笔 4 2 垃圾桶 5 6 杯 6 3 like we can do in excel as shown

Re: [R] How to handle Chinese character in R plot?

2012-10-11 Thread Manish Gupta
But i need to read my data from XML. barplot cd name表/name value13/value1 value22.9/value2 /cd cd name笔/name value13.3/value1 value23/value2 /cd

[R] How to write % in pie chart?

2012-08-11 Thread Manish Gupta
HI, I am plotting one pie chart and need to write % inside it. How can i write % inside it as show in figure below. http://r.789695.n4.nabble.com/file/n4640078/pie_chart.png Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-write-in-pie-chart-tp4640078.html

[R] How to add values on bar of groouped bar plot using mtext?

2012-08-10 Thread Manish Gupta
How to write values on bars using mtext? Grouped Bar Plot counts - table(mtcars$vs, mtcars$gear) barplot(counts, main=Car Distribution by Gears and VS,xlab=Number of Gears, col=c(darkblue,red),legend = rownames(counts), beside=TRUE, horiz=TRUE) mtext(counts ) # But poistion is not at each bar.

[R] How to add values on bar of grouped bar plot using mtext?

2012-08-10 Thread Manish Gupta
How to write values on bars using mtext? Grouped Bar Plot counts - table(mtcars$vs, mtcars$gear) barplot(counts, main=Car Distribution by Gears and VS,xlab=Number of Gears, col=c(darkblue,red),legend = rownames(counts), beside=TRUE, horiz=TRUE) mtext(counts ) # But poistion is not at each bar.

[R] How to draw clock in R ?

2012-08-09 Thread Manish Gupta
0 down vote favorite I am working on R and trying to draw a clock using a pie chart. code: pie(c(25,20,15,10,10,30),labels = c(1,2,3,4,5,6,7,8,9,10,11,12), col=rainbow(length(lbls)), clockwise = TRUE, init.angle = 90) but i need all 12 labels to be there independent of no of segments

[R] How to overlap pie chart with same radius?

2012-08-09 Thread Manish Gupta
Hi, i am overlapping 2pie chart with same radius. 1. with labels 2. without labels. Output pie chart 2 with label of first. http://r.789695.n4.nabble.com/file/n4639723/Ist_Pie.png http://r.789695.n4.nabble.com/file/n4639723/IInd_Oie.png output:

Re: [R] How to draw clock in R ?

2012-08-09 Thread Manish Gupta
Great! It works fine for me. But i have one query. In my clock i have only 10 points so i am using as follows. pie(c(25,20,15,10,10,30)) floating.pie(0,0,c(25,20,15,10,10,30)) pie.labels(0,0,seq(0,19*pi/10,by=pi/5),c(3,2,1,0,9,8,7,6,5,4)*10,radius=1.1,border=NA) But format is not correct. I

Re: [R] How to draw clock in R ?

2012-08-09 Thread Manish Gupta
Clock always start from 0 which means first slice should start from 0 and subsequent slices should be added clockwise but here they are added anticlockwise. Is there any parameter so that i can make them clockwise? library(plotrix) pie(c(25,20,15,10,10,30))

Re: [R] How to draw clock in R ?

2012-08-09 Thread Manish Gupta
Hi, I found solution myself by reversing vector. Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-draw-clock-in-R-tp4639721p4639855.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] How to adjust legend in a plot?

2012-08-03 Thread Manish Gupta
No, My X label are so big so i cannot reduce margin and cex change won't affect it much. Is there any way to write legend first and start plot later. Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-adjust-legend-in-a-plot-tp4638995p4638997.html Sent from the R

Re: [R] How to adjust legend in a plot?

2012-08-03 Thread Manish Gupta
I cannot reduce bar width. It is ok for me. Is there any way to merge two plots one with only legend and other with barplot? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-adjust-legend-in-a-plot-tp4638995p4639011.html Sent from the R help mailing list archive

[R] How to adjust legend in a plot?

2012-08-02 Thread Manish Gupta
Hi, I am working on bar plot and legend overlap plot. I attempted all position like topright, bottomright, topleft and bottomleft still same pblm is there. par(mar=c(5,22.5,2,2)) barplot(t(data[,2:3]) , beside=TRUE, col=c(rgb(.537, .769, .933),rgb(.059, .412, .659)), width = 1,

[R] How to increase lenght of axis according input data?

2012-08-01 Thread Manish Gupta
Hi, I am working on barplot. I need to plot x-axis but scale on x axis is very upto 15 while my data is upto 19. pdf(image.pdf, width=10 , height =13) par(mar=c(5,22.5,2,2)) barplot(t(data[,2:3]), beside=TRUE, col=c(rgb(.537, .769, .933),rgb(.059, .412, .659)), width = 1,

[R] How to draw fancy image in R?

2012-07-25 Thread Manish Gupta
Hi, I am working on reporting and need some fancy image instead of barplot, pie etc. Like Clock and Speedometer. How can i draw myself in R? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-draw-fancy-image-in-R-tp4637866.html Sent from the R help mailing list

[R] How to use color shade in Stacked bar plot?

2012-07-23 Thread Manish Gupta
Hi, I am wokring on stacked R plot but i want to use shade color of red for each stack and corresponding legend. How can i use it? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-use-color-shade-in-Stacked-bar-plot-tp4637468.html Sent from the R help mailing

Re: [R] How to add marker in Stacked bar plot?

2012-07-10 Thread Manish Gupta
Thanks it works fine. But can i control its width? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-add-marker-in-Stacked-bar-plot-tp4635946p4635954.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] How to add marker in Stacked bar plot?

2012-07-10 Thread Manish Gupta
I found arrow is too thin. I have one arrow image. I want to put it there. How can i import external image and merge with stacked bar plot. Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-add-marker-in-Stacked-bar-plot-tp4635946p4635955.html Sent from the R help

[R] How to use external image with R plot?

2012-07-10 Thread Manish Gupta
Hi, I am wokring on stacked bar plot and i need to add one arrow dynamically. http://r.789695.n4.nabble.com/file/n4635959/arrow_glossy_right_red.jpg http://r.789695.n4.nabble.com/file/n4635959/Screenshot.10.png Final image: http://r.789695.n4.nabble.com/file/n4635959/Screenshot.1.png

Re: [R] How to use external image with R plot?

2012-07-10 Thread Manish Gupta
Hi, I need to position arrow according to content of data dynamically. let's say i have vector c(2,3,56,9) and i need to put arrow at 56 dynamically. How can i use above method. Regards -- View this message in context:

[R] How to add marker in Stacked bar plot?

2012-07-09 Thread Manish Gupta
Hi, I am working on stacked bar plot and want to add marker(arrow) in stacked bar plot. DF=data.frame(names=c(tomato, potato, cabbage, sukuma-wiki, terere), freq=c(7,4,5,8,20)) barplot(as.matrix(DF[,2]), col=heat.colors(length(DF[,2])), legend=DF[,1], xlim=c(0,9), width=2)

[R] How to plot grouped bar plot in R?

2012-06-22 Thread Manish Gupta
HI, I have one input file Alpha 0 0.625 Beta1 0.107143 Gama2 0.910714 Delta 0 0 zeta0 0 eta 0 0.089286 I want to to plot bar plot like below http://r.789695.n4.nabble.com/file/n4634182/Screenshot.png I can plot if i have input file in

[R] Error while installing R on RHEL 6

2012-06-18 Thread Manish Gupta
Hi, I am trying to install R from source and using configure command but gettting one error message. *configure: error: --with-readline=yes (default) and headers/libs are not available* I am installing on server which is not connected by net so can install by source only. Can u pls suggest me

[R] Error while installing R on RHEL 6

2012-06-18 Thread Manish Gupta
Hi, I am trying to install R from source and using configure command but gettting one error message. *configure: error: --with-readline=yes (default) and headers/libs are not available* I am installing on server which is not connected by net so can install by source only. Can u pls suggest me

Re: [R] Error while installing R on RHEL 6

2012-06-18 Thread manish gupta
I used it but still same error. Regards On Mon, Jun 18, 2012 at 7:14 PM, Pascal Oettli kri...@ymail.com wrote: Hello, The error message gives you the solution. Regards Le 18/06/2012 18:26, Manish Gupta a écrit : Hi, I am trying to install R from source and using configure command

[R] Rename output file in Swaeve and Tex

2012-06-15 Thread Manish Gupta
HI, I am working on R and Latex. R CMD Sweave Test.Rnw (this generates Rnw.Tex file ) R CMD pdflatex Test.tex (It generated Test.pdf) Is there any way to change the name of of output file (Test.pdf). I want it to pass the output file name as parameter. R CMD Sweave Test.Rnw Output_File

Re: [R] How to write text in bar plot in R?

2012-06-13 Thread manish gupta
This does not meet my need as i need to write text as well. On Wed, Jun 13, 2012 at 9:41 AM, Manish Gupta mandecent.gu...@gmail.comwrote: Hi, I am working on R plot but i need to write some text for the bars where the value is = 0 counts 3 4 5 0 12 * 0* 4 1 3 *0* 1

Re: [R] How to write text in bar plot in R?

2012-06-13 Thread Manish Gupta
Here Text message is kind of error message for no data available. regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-write-text-in-bar-plot-in-R-tp4633190p4633211.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] How to Group Categorical data in R?

2012-06-13 Thread Manish Gupta
If there are some unique value in each column. How to look up in R? -- View this message in context: http://r.789695.n4.nabble.com/How-to-Group-Categorical-data-in-R-tp4477622p4633235.html Sent from the R help mailing list archive at Nabble.com. __

[R] How to write text in bar plot in R?

2012-06-12 Thread Manish Gupta
Hi, I am working on R plot but i need to write some text for the bars where the value is = 0 counts 3 4 5 0 12 0 4 1 3 0 1 http://r.789695.n4.nabble.com/file/n4633190/1.png My aim is to write some comment in plot. http://r.789695.n4.nabble.com/file/n4633190/2.png How

Re: [R] How to Read command line parameters in Sweave?

2012-06-12 Thread Manish Gupta
Thanks it works -- View this message in context: http://r.789695.n4.nabble.com/How-to-Read-command-line-parameters-in-Sweave-tp4632493p4633191.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] How to write text in bar plot in R?

2012-06-12 Thread Manish Gupta
Hi, I am working on R plot but i need to write some text for the bars where the value is = 0 counts 3 4 5 0 12 * 0* 4 1 3 *0* 1 http://r.789695.n4.nabble.com/file/n4633189/Screenshot-2.png My aim is to write some comment in plot.

Re: [R] How to Read command line parameters in Sweave?

2012-06-07 Thread Manish Gupta
Hi, I followed the link u provided but getting some error. R -e Sweave('MyReport.Rnw') --args PatientId=1 i am keeping commandArgs(TRUE) in my Rnw file. print(PatientId) // Error: chunk 2 Error in print(PatientId) : object 'PatientId' not found Execution halted Any working example will help

[R] How to Read command line parameters in Sweave?

2012-06-06 Thread Manish Gupta
Hi, I want to read command line parameter in Sweave. How this can be done. R CMD Sweave input.Rnw parameter1 paramter2 Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-Read-command-line-parameters-in-Sweave-tp4632493.html Sent from the R help mailing list

Re: [R] How to Read command line parameters in Sweave?

2012-06-06 Thread manish gupta
I don't want to use it as manual. I want my software to automated. On Wed, Jun 6, 2012 at 9:13 PM, Yihao Lu yihao...@gmail.com wrote: you use this list as your manual? On Wed, Jun 6, 2012 at 2:31 AM, Manish Gupta mandecent.gu...@gmail.com wrote: Hi, I want to read command line

[R] How to calculate chi sqaure value from statistical value and degrees of freedom?

2012-06-05 Thread Manish Gupta
Hi, How to calculate chi sqaure p value for given statistical value and degrees of freedom. Input : x = statistical value d = degrees of freedom output: p value = ? Regards -- View this message in context:

Re: [R] How to calculate chi sqaure value from statistical value and degrees of freedom?

2012-06-05 Thread Manish Gupta
Hi, My input is chi square statistical value and degrees of freedom. But i m getting different p values with the above formula. I double checked my values with the below calculator. http://vassarstats.net/tabs.html#csq Pls help me out. -- View this message in context:

Re: [R] How to change width of bar when there are very few bars?

2012-05-27 Thread Manish Gupta
Thanks it works! How can i make horizontal bar graph using barp? barp(hmat,width = .1,col=2) http://r.789695.n4.nabble.com/file/n4631517/barp.png -- View this message in context: http://r.789695.n4.nabble.com/How-to-change-width-of-bar-when-there-are-very-few-bars-tp4631371p4631517.html Sent

Re: [R] How to draw y axis in horizontal bar plot?

2012-05-26 Thread Manish Gupta
continued to previous mail ... http://r.789695.n4.nabble.com/file/n4631429/Image1.png After plotting y axis it will look like -- View this message in context: http://r.789695.n4.nabble.com/How-to-draw-y-axis-in-horizontal-bar-plot-tp4631428p4631429.html Sent from the R help

Re: [R] How to change width of bar when there are very few bars?

2012-05-26 Thread Manish Gupta
If i assign a vector with same small width for each bar (here) still both are same broad. I think it takes ratio for whole area. Is there any other parameter to control it.? Any working example will help me. -- View this message in context:

[R] How to draw y axis in horizontal bar plot?

2012-05-26 Thread Manish Gupta
http://r.789695.n4.nabble.com/file/n4631428/Image2.png How can i draw y axis in bar plot at x = 0? After plotting axis it will look like. -- View this message in context: http://r.789695.n4.nabble.com/How-to-draw-y-axis-in-horizontal-bar-plot-tp4631428.html Sent from the R help mailing list

[R] How to assign height value on bar plot?

2012-05-26 Thread Manish Gupta
Hi, How to assign height value on bar plot for each bar? http://r.789695.n4.nabble.com/file/n4631457/Barplot.png -- View this message in context: http://r.789695.n4.nabble.com/How-to-assign-height-value-on-bar-plot-tp4631457.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] How to assign height value on bar plot?

2012-05-26 Thread Manish Gupta
My Question is how to write height length on each bar. -- View this message in context: http://r.789695.n4.nabble.com/How-to-assign-height-value-on-bar-plot-tp4631457p4631468.html Sent from the R help mailing list archive at Nabble.com. __

[R] How to change width of bar when there are very few bars?

2012-05-25 Thread Manish Gupta
http://r.789695.n4.nabble.com/file/n4631371/Bar_Chart.png How to control width of bar chart when there are very few bars in plot? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-change-width-of-bar-when-there-are-very-few-bars-tp4631371.html Sent from the R

[R] Error while conecting to database.

2012-05-24 Thread Manish Gupta
Hi, I am getting following error message while retrieving records from mysql. *Error in if (count 0L) { : missing value where TRUE/FALSE needed Calls: Anonymous - do.call - Anonymous - Anonymous Execution halted* con2 - dbConnect(MySQL(), user=XXX, password=,dbname=, host=XXX.X.X.X)

[R] How to retrieve value form dataframe by Key?

2012-05-24 Thread Manish Gupta
Hi, I have one datagrame Col1 Col2Col3 Col3 xxx erThis is third record of 1st line. This is 4th record of first line. xxy erThis is third record of 1st

[R] How to avoid numbering while printing list element?

2012-05-24 Thread Manish Gupta
HI, I am printing list element. print(desc[[2]]) [1] XXXxx I want to remove [1] Output should be XXXxx How can i implement it? Thanks -- View this message in context:

Re: [R] How to create axis y axis for horizontal bar plot?

2012-05-23 Thread Manish Gupta
Thanks! It works but how can i remove x axis? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-create-axis-y-axis-for-horizontal-bar-plot-tp4630478p4631045.html Sent from the R help mailing list archive at Nabble.com. __

[R] How to create axis y axis for horizontal bar plot?

2012-05-18 Thread Manish Gupta
Hi, i am working on bar plot but i need to generate y axis for horizontal bar plot. In the attached diagram x-axis is there with scale 0 to 12 but i need y axis. How can i implement it? http://r.789695.n4.nabble.com/file/n4630478/barplot2.jpg Thanks -- View this message in context:

Re: [R] How to plot stacked histogram in R?

2012-05-06 Thread Manish Gupta
HI, Below is third example. # here we want the full scale from zero to one color.legend(2,6,4,6.4,legend=c(100% guys,100% girls), rect.col=color.scale(seq(0,1,by=0.25),c(0.2,1),c(0.2,0.4),c(1,0.4))) par(mar=c(5,4,4,2)) # use barp to display a multiple histogram

[R] How to plot stacked histogram in R?

2012-05-02 Thread Manish Gupta
Hi, I am working on data analysis. I need to plot stacked histogram for two Files. File1: 1 2 3 3 4 4 File2: 4 5 6 6 7 7 7 How can i plot them on same graph? Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-plot-stacked-histogram-in-R-tp4602369.html Sent from

[R] How to plot graph with different scale (y axis) on same graph?

2012-04-26 Thread Manish Gupta
Hi, I have my data in below format. position var1var2 2 .1 10 3 .29 89 12.56 100 425 .341234 6546 .12 21

[R] How to reduce plot size on linux?

2012-04-25 Thread Manish Gupta
Hi, I am working on linux and i need to reduce plot size (bar plot) so that i can easily use in sweave. How can i implement it? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-reduce-plot-size-on-linux-tp4585371p4585371.html Sent from the R help mailing list

[R] Error while generating latex table from sweave and R?

2012-04-18 Thread Manish Gupta
Hi , I am generating one table without using latex. for (i in 1:LCol3) { df - data.frame(matrix(ncol = 6, nrow = 0)) datavec-c(formatfile[formatfile[,3]==Col3[i],-3]) df-rbind(df,datavec) cat(Col3[i],\n) cat(\\begin{table},\n) cat(\\begin{tabular}{|l|l|l|},\n) cat(\\hline,\n)

[R] How to keep spacing in column name while reading data from data frame?

2012-04-17 Thread Manish Gupta
Hi, I am working on dataframe and column names are multiwords but when i read it it become one word with space relplaced by . How can i keep normall spacing reading file. for e.g. input file Data Test Data Out 35 54 But when i read

[R] How to change color of bar based on y value of y axis?

2012-04-17 Thread Manish Gupta
Hi, I m working on bar chart. *Input file:* index -5 1 index -4 3 index -3 2 index -2 10 index -1 7 index 0 2 index 1 1 barplot(t(as.matrix(i[3])), ylab= value, main = testdata, beside=TRUE,

Re: [R] How to rank vectors based on their elements?

2012-04-15 Thread Manish Gupta
Thanks for your reply. But the classes are having weighht vectors? so we know alredy each elelment (here 5) has their own signicance which is shown by negative and positive values. But i need to use this data to rank them. Regards -- View this message in context:

Re: [R] How to rank vectors based on their elements?

2012-04-15 Thread Manish Gupta
Hi, In my case, your first guess is right. I need to rank classes based on their feature vector. 1 3 4 -2 0 class1 2 0 0 -3 0 class2 2 3 1 4 5 class3 -4 -5 1 0 0 class4 Like class1 class3 class4 class2 How can i implement it? Regards -- View

[R] How to rank vectors based on their elements?

2012-04-14 Thread Manish Gupta
Hi, I am working on ranking algo? I have data which is in the form of vectors (feature) for each class and i need to rank them based on feature vector. class1-c(1,3,4,-2,0) class2-c(2,0,0,-3,0) class3-c(2,3,1,4,5) class4-c(-4,-5,1,0,0) I need to rank class1, class2, class3, class4 class5. How

[R] How to put latex mdframed side by side (separated by space) ?

2012-04-02 Thread Manish Gupta
Hi, I have one query regarding latex. I am working on latex and i need to put two mdframes side (separated by space) on A4 paper size. How can i implement it? Thanks -- View this message in context:

[R] How to use Latex code in R loop?

2012-04-01 Thread Manish Gupta
Hi, I am newbie in Latex and R. I am working on one report in which i need to read file and display content of file by formatting (adding color boxes and colorful text for each record). For this i need to use latex code in R loop. How can i use Latex code in R loop. Any example will help me a

[R] How to draw table in Latex without using xtable?

2012-03-22 Thread Manish Gupta
Hi, I am working on table suing R and Latex. I am writing .Rnw file first in which i m reading input file and storing into dataframe. After filtering certain values from this dataframe. I am planning to display it. I don't want to use xtable since i need to change column names. *Sample .Rnw

[R] How to change colnames in xtable?

2012-03-22 Thread Manish Gupta
Hi, Can we change column names in latex table? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-change-colnames-in-xtable-tp4494833p4494833.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] R (Bold font) and Latex

2012-03-22 Thread Manish Gupta
Great it works! But in my case i have to use text bf in loop (R). Since x is variable (row from file) which keeps on changing. How can i implement the above logic in loop. Regards -- View this message in context: http://r.789695.n4.nabble.com/R-Bold-font-and-Latex-tp4487535p4497610.html Sent

[R] Output formatting in Latex and R

2012-03-19 Thread Manish Gupta
I am working on Latex and R and using following code. echo=FALSE= infile-read.table(test.txt,sep=\t) Col3 - unique(infile[,3]) LCol3 - length(Col3) for (i in 1:LCol3) { print(paste(Column, Col3[i])) print(infile[infile[,3]==Col3[i],-3]) } @ I am getting following output. 1] Column C V1 V2 V4

Re: [R] How to Group Categorical data in R?

2012-03-19 Thread Manish Gupta
It is working fine. Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-Group-Categorical-data-in-R-tp4477622p4483565.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] Output formatting in Latex and R

2012-03-19 Thread Manish Gupta
Great it works! But how can i put space or tab between two records? -- View this message in context: http://r.789695.n4.nabble.com/Output-formatting-in-Latex-and-R-tp4483631p4483921.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Output formatting in Latex and R

2012-03-19 Thread Manish Gupta
Hi, I am using follosing code and getting the below output. echo=FALSE= infile-read.table(/home/manish/Desktop/test.txt,sep=\t,header=TRUE) Col3 - unique(infile[,3]) LCol3 - length(Col3) for (i in 1:LCol3) { print(paste(Disease Risk:, Col3[i]),row.names=FALSE, col.names=FALSE,quote=FALSE)

Re: [R] Output formatting in Latex and R

2012-03-19 Thread Manish Gupta
How to avoid [1] in output? print(sqrt(2),row.names=NULL) *[1] *1.414214 How to avoid it? print(sqrt(2),row.names=NULL) 1.414214 Regards -- View this message in context: http://r.789695.n4.nabble.com/Output-formatting-in-Latex-and-R-tp4483631p4487480.html Sent from the R help mailing list

[R] R (Bold font) and Latex

2012-03-19 Thread Manish Gupta
Hi, I am using R and latex for generating report. I need R result to be in bold face. For instance. x-c(1,0,2,4) I need to print its output in bold face. x *1 2 3 4* I attempted to use textbf{} but can not write R output inside it. How can i implement it. Thanks in advance. Regards --

[R] How to Group Categorical data in R?

2012-03-16 Thread Manish Gupta
Hi, I am newbie to R and working on result presentation? My Input table is in following format A B CD X TCK Z U ZM E VZR Z U

[R] How to sort frequency distribution table?

2012-03-07 Thread Manish Gupta
Hi, I am working on categorical data with column as disease name(categaory). My input data is [1] Acute lymphoblastic leukemia (childhood) [2] Adiponectin levels [3] Adiponectin levels [4] Adiponectin levels [5] Adiponectin