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 

> 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 draws 2 superimposed  bar.
> How to do to make them one beside another.
>
>
> Thanks
>
>
> t=read.table("actual")
> barchart( V5 ~ V3 | V2 * V1,t)
>
>
>
>


-- 
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-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] barchar or barp on multiple data

2014-01-14 Thread Adel ESSAFI
Ok,
I put here the data exported with dput().
structure(list(V1 = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,
0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,
0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L), V2 = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), V3 = structure(c(1L, 1L, 2L,
2L, 8L, 8L, 7L, 7L, 9L, 9L, 10L, 10L, 4L, 4L, 3L, 3L, 5L, 5L,
6L, 6L, 1L, 1L, 2L, 2L, 8L, 8L, 7L, 7L, 9L, 9L, 10L, 10L, 4L,
4L, 3L, 3L, 5L, 5L, 6L, 6L, 1L, 1L, 2L, 2L, 8L, 8L, 7L, 7L, 9L,
9L, 10L, 10L, 4L, 4L, 3L, 3L, 5L, 5L, 6L, 6L, 1L, 1L, 2L, 2L,
8L, 8L, 7L, 7L, 9L, 9L, 10L, 10L, 4L, 4L, 3L, 3L, 5L, 5L, 6L,
6L), .Label = c("C/L", "C/S", "D/F", "D/I", "D/L", "D/S", "I/F",
"I/I", "I/L", "I/S"), class = "factor"), V4 = c(0L, 1L, 0L, 1L,
0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L,
0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L,
0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L,
0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L,
0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L), V5 = c(671115,
1028526, 734174, 1327998, 838787, 1422540, 803142, 1206913, 1981495,
1856112, 1981495, 1856112, 689313.033281565, 1167279.07984257,
666335.015648723, 1087554.01538312, 670777.019860625, 1028317.0531472,
730457.025310636, 1298133.01414597, 690879, 996712, 755213, 1293494,
871769, 1478186, 830802, 1169810, 2364168, 2364168, 2364168,
2364168, 710988.088020086, 1119450.09723687, 685209.028554797,
1041768.02318358, 689760.04900682, 997493.021301806, 752893.050110579,
1286333.03097144, 671437, 1029284, 732144, 1317596, 844051, 1422540,
803142, 1205147, 1981495, 1856112, 1981495, 1856112, 690552.014781833,
1168328.05673718, 14.011364698, 1089523.05270934, 670944.00994724,
1029246.06969887, 728912.037932515, 1294319.04904819, 691311,
996821, 753640, 1299848, 871769, 1443884, 830802, 1169810, 2364168,
2364168, 2364168, 2364168, 711121.048051834, 1115219.00324583,
685480.015842438, 1042424.03302765, 690023.032608509, 998007.038496614,
751040.029144168, 1277138.01515984), V6 = c(631830L, 631830L,
631830L, 631830L, 631830L, 631830L, 631830L, 631830L, 631830L,
631830L, 631830L, 631830L, 631830L, 631830L, 631830L, 631830L,
631830L, 631830L, 631830L, 631830L, 651129L, 651129L, 651129L,
651129L, 651129L, 651129L, 651129L, 651129L, 651129L, 651129L,
651129L, 651129L, 651129L, 651129L, 651129L, 651129L, 651129L,
651129L, 651129L, 651129L, 632125L, 632125L, 632125L, 632125L,
632125L, 632125L, 632125L, 632125L, 632125L, 632125L, 632125L,
632125L, 632125L, 632125L, 632125L, 632125L, 632125L, 632125L,
632125L, 632125L, 651458L, 651458L, 651458L, 651458L, 651458L,
651458L, 651458L, 651458L, 651458L, 651458L, 651458L, 651458L,
651458L, 651458L, 651458L, 651458L, 651458L, 651458L, 651458L,
651458L), V7 = c(471L, 900L, 423L, 830L, 4L,
4L, 192L, 157L, 477L, 900L, 428L, 827L,
59L, 72L, 6221L, 5409L, 11752L, 17060L,
10766L, 17546L, 462L, 830L, 417L, 774L,
4L, 4L, 182L, 142L, 472L, 824L, 421L,
771L, 58L, 66L, 5799L, 4819L, 11581L,
16325L, 10860L, 17255L, 472L, 901L, 424L,
835L, 5L, 5L, 192L, 160L, 477L, 900L,
428L, 826L, 58L, 72L, 6176L, 5390L, 11590L,
17028L, 10782L, 17561L, 465L, 827L, 422L,
777L, 4L, 4L, 180L, 142L, 470L, 827L,
422L, 774L, 57L, 68L, 5781L, 4798L, 11558L,
16348L, 10885L, 17221L), V8 = c(4.71, 9, 4.23, 8.3,
0.04, 0.04, 1.92, 1.57, 4.77, 9, 4.28, 8.27, 0.59, 0.72, 62.21,
54.09, 117.52, 170.6, 107.66, 175.46, 4.62, 8.3, 4.17, 7.74,
0.04, 0.04, 1.82, 1.42, 4.72, 8.24, 4.21, 7.71, 0.58, 0.66, 57.99,
48.19, 115.81, 163.25, 108.6, 172.55, 4.72, 9.01, 4.24, 8.35,
0.05, 0.05, 1.92, 1.6, 4.77, 9, 4.28, 8.26, 0.58, 0.72, 61.76,
53.9, 115.9, 170.28, 107.82, 175.61, 4.65, 8.27, 4.22, 7.77,
0.04, 0.04, 1.8, 1.42, 4.7, 8.27, 4.22, 7.74, 0.57, 0.68, 57.81,
47.98, 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 

> 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 draw

Re: [R] barchar or barp on multiple data

2014-01-14 Thread John Kane
 
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

No data.  The list strips off most files. If you want to send data give the 
file a .txt suffix but it is much better to supply the output of dput() .

John Kane
Kingston ON Canada


> -Original Message-
> From: adeless...@gmail.com
> Sent: Tue, 14 Jan 2014 19:08:59 +0100
> To: r-help@r-project.org
> Subject: [R] barchar or barp on multiple data
> 
> 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 draws 2 superimposed  bar.
> How to do to make them one beside another.
> 
> 
> Thanks
> 
> 
> t=read.table("actual")
> barchart( V5 ~ V3 | V2 * V1,t)
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.