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
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)
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
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 =
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
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),
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 ,
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
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),
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.
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:
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
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
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
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
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
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
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.
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.
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
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:
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
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))
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
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
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
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,
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,
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
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
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.
__
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
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
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:
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)
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
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
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
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
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
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
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.
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.
__
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
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
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.
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
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
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
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:
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:
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
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
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:
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
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.
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.
__
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
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)
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
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:
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.
__
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:
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
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
Hi,
I have my data in below format.
position var1var2
2 .1 10
3 .29 89
12.56 100
425 .341234
6546 .12 21
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
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)
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
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,
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:
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
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
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:
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
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
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.
__
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
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
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
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.
__
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)
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
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
--
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
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
86 matches
Mail list logo