Re: [R] barchar or barp on multiple data

2014-01-15 Thread Adel ESSAFI
here is the solution if anyone is interrested barchart(V5 ~ V3 | V1 * V2 , data = t,groups = V4, layout = c(1,6), auto.key = list(space = right), ylab = Makespan) Regards 2014/1/14 Adel ESSAFI adeless...@gmail.com Hello list I have the following data in file in attachment. in want to draw

[R] barchar or barp on multiple data

2014-01-14 Thread Adel ESSAFI
Hello list I have the following data in file in attachment. in want to draw bars for every value of V5 in finction of V3 grouped by V2*V1. however, each unique value of V4, V2 and V1 I want to draw a bar. This example is very close to want I want to do. but here, for each value of V3, barchart

Re: [R] barchar or barp on multiple data

2014-01-14 Thread Adel ESSAFI
, 115.58, 163.48, 108.85, 172.21)), row.names = c(NA, -80L ), .Names = c(V1, V2, V3, V4, V5, V6, V7, V8), class = data.frame) 2014/1/14 Adel ESSAFI adeless...@gmail.com Hello list I have the following data in file in attachment. in want to draw bars for every value of V5 in finction of V3 grouped

[R] barchar and box on the same figure! is it possible

2014-01-10 Thread Adel ESSAFI
Hello list I have this data frame which represent values grouped by algorithm. remark that for each algorithm, we have the same value in V3 but differnt values in V4. I want to make a plot with algorithms in axes, and for each algorithm I draw a bar (for V3) and a bwplot for V4. is thart

[R] Fwd: barchar and box on the same figure! is it possible

2014-01-10 Thread Adel ESSAFI
Hello list I have this data frame which represent values grouped by algorithm. remark that for each algorithm, we have the same value in V3 but differnt values in V4. I want to make a plot with algorithms in axes, and for each algorithm I draw a bar (for V3) and a bwplot for V4. is thart

[R] embedd fonts in pdf generated by R

2014-01-10 Thread Adel ESSAFI
Hello list I generated pdf files with R that I integrated in .tex file and compiled with pdflatex. however, all the fonts of my R figure not embadded. so the file is rejected from EDAS web site. Could you help please. [adel@localhost hcw]$ pdffonts hcw.pdf name

[R] multiple bar for barchart

2013-12-09 Thread Adel ESSAFI
Hello list, I have the following data on dm table dm Group.1 V1 V2 V3V4 V5 V6 V7 V8 1 C/L NA 15.5 732179 875270.6 -143091.46 1107270 1088300 18964.40 2 C/S NA 15.5 803926 850352.1 -46426.03 1395710 1312310 83403.30 3 D/D NA 15.5

[R] legend for bar plot ?

2013-11-26 Thread Adel ESSAFI
Hello; I have the following table m V2 V1 V3 1 C/L 0 732179 3 C/S 0 803926 19 D/F 0 724924 17 D/I 0 755841 13 D/L 0 731904 15 D/S 0 798289 11 I/F 0 871670 9 I/I 0 897718 5 I/L 0 2628113 7 I/S 0 2628113 2 C/L 1 1107269 4 C/S 1 1395714 20 D/F 1 1181282 18 D/I 1

[R] legend for bar plot ?

2013-11-26 Thread Adel ESSAFI
Hello; I have the following table m V2 V1 V3 1 C/L 0 732179 3 C/S 0 803926 19 D/F 0 724924 17 D/I 0 755841 13 D/L 0 731904 15 D/S 0 798289 11 I/F 0 871670 9 I/I 0 897718 5 I/L 0 2628113 7 I/S 0 2628113 2 C/L 1 1107269 4 C/S 1 1395714 20 D/F 1 1181282 18 D/I 1

Re: [R] R prints empty group on my figure!!

2013-05-10 Thread Adel ESSAFI
ESSAFI Sent: Wednesday, May 08, 2013 12:48 PM To: r-help Subject: Re: [R] R prints empty group on my figure!! hello, I attach the figure generated by R: 2013/5/8 Adel ESSAFI adeless...@gmail.com Hello list I am trying to solve a problem when drawing a figure related

[R] R prints empty group on my figure!!

2013-05-08 Thread Adel ESSAFI
Hello list I am trying to solve a problem when drawing a figure related to the dataframe below. I draw V6 in Y axes and V3 as X axes. The data are grouped by V1 AND V2. I use this commande to make it: xyplot(cm[,6]~cm[,3],type=b,group=interaction(cm[,1],cm[,2],sep=/), auto.key =list(

Re: [R] R prints empty group on my figure!!

2013-05-08 Thread Adel ESSAFI
hello, I attach the figure generated by R: 2013/5/8 Adel ESSAFI adeless...@gmail.com Hello list I am trying to solve a problem when drawing a figure related to the dataframe below. I draw V6 in Y axes and V3 as X axes. The data are grouped by V1 AND V2. I use this commande to make

Re: [R] xyplot legend : simple question

2013-05-06 Thread Adel ESSAFI
thank you 2013/5/6 Gerrit Eichner gerrit.eich...@math.uni-giessen.de Hello, Adel, maybe the argument sep of interaction() helps you. Try interaction( g[,1], g[,2], sep = /) Regards -- Gerrit I am using this command to draw the figure attached to this mail.

Re: [R] xyplot legend : simple question

2013-05-06 Thread Adel ESSAFI
Thank you maybe the argument sep of interaction() helps you. Try interaction( g[,1], g[,2], sep = /) Regards -- Gerrit I am using this command to draw the figure attached to this mail. xyplot(g[,4]~g[,3],type=b,**group=interaction(g[,1],g[,2])**, auto.key =list( title=Evolution de

[R] ggplot and colors

2013-02-04 Thread Adel ESSAFI
Hello, I have a problem with ggplot and colors I used this function to draw somes lines and I want them to be all black (just to test) however, I dont get any black line in the figure. Do you have any experience with ggplot and manual colors?? ggplot(cmax, aes(cmax[,3],

[R] monte carlo simulation on R

2012-12-04 Thread Adel ESSAFI
Hello, How can I make a monte carlo simulation on R? Regards Adel -- PhD candidate in Computer Science Address 3 avenue lamine, cité ezzahra, Sousse 4000 Tunisia tel: +216 97 246 706 (+33640302046 jusqu'au 15/6) fax: +216 71 391 166 [[alternative HTML version deleted]]

[R] syntaxe problem

2012-02-24 Thread Adel ESSAFI
Hello, I want to create 10 dataframe using a for loop. I don t know what to do to create 10 different dataframes whose name is parametrized with variable i. This syntaxe fails. It create a unique fataframe called dfn. Any input will help Thanks for (i in 1:10){ + filename=paste(avail4,i,sep =

[R] transforming a data frame to matrix

2012-02-18 Thread Adel ESSAFI
Hello orderulcount Group.1 Group.2 Group.3 xV5 7C L 0.0 30 C / L 19 C L 0.2 27 C / L 31 C L 0.4 15 C / L 43 C L 0.6 7 C / L 54 C L 0.8 2 C / L 10 C S 0.0 27 C / S 22 C S

Re: [R] transforming a data frame to matrix

2012-02-18 Thread Adel ESSAFI
with simpler expressions: if I have a dataframe A B C is it possible de transform it to a matrix where nrow(A) colomns, nrow(B) row and for each value of C, we put the corresponding value in the matrix. Regards Le 18 février 2012 13:57, Adel ESSAFI adeless...@gmail.com a écrit : Hello

Re: [R] multiple histograms from a dataframe

2012-02-11 Thread Adel ESSAFI
Le 11 février 2012 02:33, David Winsemius dwinsem...@comcast.net a écrit : On Feb 10, 2012, at 7:05 PM, Adel ESSAFI wrote: Hi list I need some help for drawing some histograms I have a dataframe , say, X Y Z T I want to draw a histogram Z-T for each value of the couple (X-Y). When

[R] multiple histograms from a dataframe

2012-02-10 Thread Adel ESSAFI
Hi list I need some help for drawing some histograms I have a dataframe , say, X Y Z T I want to draw a histogram Z-T for each value of the couple (X-Y). When I use thus syntax library(lattice) histogram(law[,3] ~ law[,66] | law[,1] ) it draws multiple histograms but by selecting distinct

[R] generate a random number with rexp ?

2012-01-27 Thread Adel ESSAFI
dear list I use runif to generate a ramdom number between min and max runif(n, min=0, max=1) however , the syntaxe of rexp does not allow that rexp(n, rate = 1) and it generate a number with the corresponding rate. The question is: how to generate a number between min and max using rexp().

Re: [R] generate a number using exponential low

2011-12-13 Thread Adel ESSAFI
Deal list I want to generate a random number in an interval using exponential low I know how to make that simply using uniform low x1 - runif(1, 5.0, 7.5) this will generate a number between 5 et 7.5 but with uniform low. Could you help pease.? Regards -- PhD candidate in Computer

Re: [R] question about aggregate

2011-10-22 Thread Adel ESSAFI
Hello, is there any help please. Regards 2011/10/21 Adel ESSAFI adeless...@gmail.com Hello I am discovering R and I find it is really very powerful. However, I find some newbie difficulties. Here, I have a data frame with manu values that I want to calculate the frequency (the nomber

[R] Fwd: question about aggregate

2011-10-22 Thread Adel ESSAFI
Hello, is there any help please. Regards 2011/10/21 Adel ESSAFI adeless...@gmail.com Hello I am discovering R and I find it is really very powerful. However, I find some newbie difficulties. Here, I have a data frame with manu values that I want to calculate the frequency (the nomber

Re: [R] question about aggregate

2011-10-22 Thread Adel ESSAFI
Hi, It is not what I want, but, thx anyway. Regards 2011/10/22 Weidong Gu anopheles...@gmail.com try this table(sci[,2]=0,sci[,1]=L) Weidong Gu On Sat, Oct 22, 2011 at 7:51 AM, Adel ESSAFI adel.s...@imag.fr wrote: Hello, is there any help please. Regards 2011/10/21 Adel

Re: [R] question about aggregate

2011-10-22 Thread Adel ESSAFI
Is this waht you want? sci[,5][sci[,2]==0 sci[,1]==L] Weidong On Sat, Oct 22, 2011 at 8:19 AM, Adel ESSAFI adeless...@gmail.com wrote: Hi, It is not what I want, but, thx anyway. Regards 2011/10/22 Weidong Gu anopheles...@gmail.com try this table(sci[,2]=0,sci[,1]=L

Re: [R] question about aggregate

2011-10-22 Thread Adel ESSAFI
2011/10/22 Adel ESSAFI adel.s...@imag.fr NO aggregate(si[,7],list(si[,2],si[,1]),mean) Group.1 Group.2 x 1 0.0 D 212.5015448 2 0.2 D 200.5271137 3 0.4 D 191.5387529 4 0.6 D 131.5856218 5 0.8 D 16.4515798 6 1.0

Re: [R] question about aggregate

2011-10-22 Thread Adel ESSAFI
for providing the example data, try this aggregate(si[,7],list(si[,2],si[,1]),function(x) sum(table(x))) Weidong On Sat, Oct 22, 2011 at 9:28 AM, Adel ESSAFI adel.s...@imag.fr wrote: NO aggregate(si[,7],list(si[,2],si[,1]),mean) Group.1 Group.2 x 1 0.0 D 212.5015448 2

[R] question about aggregate

2011-10-21 Thread Adel ESSAFI
Hi list I am discovering R, and -- PhD candidate in Computer Science Address 3 avenue lamine, cité ezzahra, Sousse 4000 Tunisia tel: +216 97 246 706 (+33640302046 jusqu'au 15/6) fax: +216 71 391 166 [[alternative HTML version deleted]] __

[R] question about aggregate

2011-10-21 Thread Adel ESSAFI
Hello I am discovering R and I find it is really very powerful. However, I find some newbie difficulties. Here, I have a data frame with manu values that I want to calculate the frequency (the nomber of line) of the some criteria. For exemple here, I want it to print the number of occurence

[R] multiple lines with the same data frame?

2011-10-17 Thread Adel ESSAFI
Bonjour I have this data frame and I am newbie in R. I want to ask if it is possible to draw 10 lines in a plot such that: a line for every colomn, the x - axis is the second column and the y-axis is the third one. Thank you for any input 1 0 1094442 1 0.2 1163576.2 1 0.4 1238539.6 1

[R] two ecdf in the same figure

2011-09-24 Thread Adel ESSAFI
Hello, is ot possible to draw two ecdf of vectors (say s1 and s2) on the same figire with R. plot function draws a new plot and there is no function like points or lines to draw a second ecdf on the figure. Regards -- *PhD candidate in Computer Science Address 3 avenue lamine, cité ezzahra,

[R] draw points in R

2011-09-14 Thread Adel ESSAFI
Hello list I have this file 0 121289479 25 0 212599129 1 0 285254098 21 0 444889848 45 0 469197123 30 0 640007403 82 0 718215617 8 0 758534043 56 0 799706577 4 0 814441385 93 0 843545059 37 0.2 121289479 6 0.2 285254098 3 0.2 444889848 6 0.2

Re: [R] draw points in R

2011-09-14 Thread Adel ESSAFI
Points) You might be interested in ?par especially pch and also in ?legend as well as in the basic help for ?plot and ?points. Sarah On Wed, Sep 14, 2011 at 1:57 PM, Adel ESSAFI adeless...@gmail.com wrote: Hello list I have this file 0 121289479 25 0 212599129 1 0 285254098 21

[R] printing big real values

2011-01-19 Thread Adel ESSAFI
Hello, I have a file with very big values. I want to display the real values with classic ways (without exposant) summary(a[,1]); Min. 1st Qu.Median Mean 3rd Qu. Max. 1.198e+09 1.199e+09 1.200e+09 1.200e+09 1.201e+09 1.202e+09 Can you help please? Regards Adel --

[R] basic hist() question

2010-08-21 Thread Adel ESSAFI
Hi list I loaded the content of a file dureetasks.txt to variable a. This file contains an interger per line. when I print a vector, it displays correctly. however, when I try to print the histogram, I get this error message a=read.table(dureetasks.txt) hist(a) Error in hist.default(a) : 'x'

Re: [R] basic hist() question

2010-08-21 Thread Adel ESSAFI
Median : 2658 Mean : 25802 3rd Qu.: 42558 Max. :1575814 hist(a); Error in hist.default(a) : 'x' must be numeric 2010/8/21 Gavin Simpson gavin.simp...@ucl.ac.uk On Sat, 2010-08-21 at 11:37 +0200, Adel ESSAFI wrote: Hi list I loaded the content of a file dureetasks.txt

[R] Fwd: basic hist() question

2010-08-21 Thread Adel ESSAFI
-- Forwarded message -- From: Adel ESSAFI adeless...@gmail.com Date: 2010/8/21 Subject: Re: [R] basic hist() question To: Henrique Dallazuanna www...@gmail.com It works fine. Could you explain to me why it did not worked for read.table? regards Adel 2010/8/21 Henrique

Re: [R] basic hist() question

2010-08-21 Thread Adel ESSAFI
thanks, I'am not veru used with R!! regards 2010/8/21 Henrique Dallazuanna www...@gmail.com Adel, read.table return a data.frame, Gavin showed, you need pass which column will be plotted to hist. scan return a vector. On Sat, Aug 21, 2010 at 10:59 AM, Adel ESSAFI adeless

[R] variation

2010-06-05 Thread Adel ESSAFI
Hi list I am a new user of R. I ask for some beginner question I am searching if there is any function that computes the variation of some discrete values of a vector (mean() and sd() exists, but i have not find variation). Thanks in advance Adel -- PhD candidate in Computer Science Address

[R] Fwd: How to make R automatic?

2010-06-05 Thread Adel ESSAFI
-- Forwarded message -- From: Adel ESSAFI adel.s...@imag.fr Date: 2010/6/5 Subject: Re: [R] How to make R automatic? To: zhangted001 zhen...@gmail.com Well, I am new but i will give you an example of script that I run cat exec2.sh R --no-saveEOF fl=list.files(pattern=*.dat

Re: [R] variation

2010-06-05 Thread Adel ESSAFI
mean. But I looked for ready function :) compute the mean and the std.dev., it is straightforward to calculate it. Adel ESSAFI schrieb: Hi list I am a new user of R. I ask for some beginner question I am searching if there is any function that computes the variation of some

Re: [R] variation

2010-06-05 Thread Adel ESSAFI
2010/6/5 Adel ESSAFI adel.s...@imag.fr 2010/6/5 Jannis bt_jan...@yahoo.de What exactly do you mean by variation? As I understand it, this term is a broad term for all kinds of different spread measures (like quantile range or standard deviation). Do you mean the Coefficient of Variation