[R-es] ggplot2 con 2 columnas

Enrique Palacios wep@l@cio@ch @ending from gm@il@com
Dom Nov 11 01:47:50 CET 2018


Dear all, I try to graph the two variables prec1 and prec2, using
ggplot2 for several points, using facet for the different points, in
similar times, total 8 times, the one variable is plotted, but I wish
the two in bars. If someone can help thank you

gr4 <- ggplot(malla, aes(x=tiempo,
y=prec1),color="blue",aes(x=tiempo,y=prec2),color="red")+
geom_bar(stat="identity")

gr4 + facet_grid(lugar ~.)

tiempo lugar prec1 prec2
1      t1    a1     1     1
2      t2    a1     2     2
etc   etc   etc

Thanks

















Dear all, I try to graph the two variables
prec1 and prec2, using ggplot2 for several points, using facet for the
different points, in similar times, total 8 times, the one variable is plotted,
but I wish the two in bars. If someone can help thank you



Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



     tiempo lugar prec1 prec2

1      t1    a1     1     1

2      t2    a1     2     2

3      t3    a1     4     3

4      t4    a1     3     2

5      t5    a1     6     3

6      t6    a1     3     2

7      t7    a1     5     4

8      t8    a1     4     5

9      t1    a2     6     6

10     t2    a2     3     3

11     t3    a2     3     6

12     t4    a2     2     3

13     t5    a2     6     7

14     t6    a2     5     4

15     t7    a2     7     4

16     t8    a2     3     2

View(malla)



library(ggplot2)

gr4 <- ggplot(malla, aes(x=tiempo,
y=prec1),color="blue",aes(x=tiempo,y=prec2),color="red")+
geom_bar(stat="identity")

gr4 + facet_grid(lugar ~.)

Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



     tiempo lugar prec1 prec2

1      t1    a1     1     1

2      t2    a1     2     2

3      t3    a1     4     3

4      t4    a1     3     2

5      t5    a1     6     3

6      t6    a1     3     2

7      t7    a1     5     4

8      t8    a1     4     5

9      t1    a2     6     6

10     t2    a2     3     3

11     t3    a2     3     6

12     t4    a2     2     3

13     t5    a2     6     7

14     t6    a2     5     4

15     t7    a2     7     4

16     t8    a2     3     2

View(malla)



library(ggplot2)

gr4 <- ggplot(malla, aes(x=tiempo,
y=prec1),color="blue",aes(x=tiempo,y=prec2),color="red")+
geom_bar(stat="identity")

gr4 + facet_grid(lugar ~.)

Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



     tiempo lugar prec1 prec2

1      t1    a1     1     1

2      t2    a1     2     2

3      t3    a1     4     3

4      t4    a1     3     2

5      t5    a1     6     3

6      t6    a1     3     2

7      t7    a1     5     4

8      t8    a1     4     5

9      t1    a2     6     6

10     t2    a2     3     3

11     t3    a2     3     6

12     t4    a2     2     3

13     t5    a2     6     7

14     t6    a2     5     4

15     t7    a2     7     4

16     t8    a2     3     2

View(malla)



library(ggplot2)

gr4 <- ggplot(malla, aes(x=tiempo,
y=prec1),color="blue",aes(x=tiempo,y=prec2),color="red")+
geom_bar(stat="identity")

gr4 + facet_grid(lugar ~.)

Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



     tiempo lugar prec1 prec2

1      t1    a1     1     1

2      t2    a1     2     2

3      t3    a1     4     3

4      t4    a1     3     2

5      t5    a1     6     3

6      t6    a1     3     2

7      t7    a1     5     4

8      t8    a1     4     5

9      t1    a2     6     6

10     t2    a2     3     3

11     t3    a2     3     6

12     t4    a2     2     3

13     t5    a2     6     7

14     t6    a2     5     4

15     t7    a2     7     4

16     t8    a2     3     2

View(malla)



library(ggplot2)

gr4 <- ggplot(malla, aes(x=tiempo,
y=prec1),color="blue",aes(x=tiempo,y=prec2),color="red")+
geom_bar(stat="identity")

gr4 + facet_grid(lugar ~.)

Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



     tiempo lugar prec1 prec2

1      t1    a1     1     1

2      t2    a1     2     2

3      t3    a1     4     3

4      t4    a1     3     2

5      t5    a1     6     3

6      t6    a1     3     2

7      t7    a1     5     4

8      t8    a1     4     5

9      t1    a2     6     6

10     t2    a2     3     3

11     t3    a2     3     6

12     t4    a2     2     3

13     t5    a2     6     7

14     t6    a2     5     4

15     t7    a2     7     4

16     t8    a2     3     2

View(malla)



library(ggplot2)

gr4 <- ggplot(malla, aes(x=tiempo,
y=prec1),color="blue",aes(x=tiempo,y=prec2),color="red")+
geom_bar(stat="identity")

gr4 + facet_grid(lugar ~.)

Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



     tiempo lugar prec1 prec2

1      t1    a1     1     1

2      t2    a1     2     2

3      t3    a1     4     3

4      t4    a1     3     2

5      t5    a1     6     3

6      t6    a1     3     2

7      t7    a1     5     4

8      t8    a1     4     5

9      t1    a2     6     6

10     t2    a2     3     3

11     t3    a2     3     6

12     t4    a2     2     3

13     t5    a2     6     7

14     t6    a2     5     4

15     t7    a2     7     4

16     t8    a2     3     2

View(malla)



library(ggplot2)

gr4 <- ggplot(malla, aes(x=tiempo,
y=prec1),color="blue",aes(x=tiempo,y=prec2),color="red")+
geom_bar(stat="identity")

gr4 + facet_grid(lugar ~.)

Dear all, I try to graph the two variables prec1 and prec2, using ggplot2
for several points, using facet for the different points, in similar times,
total 8 times, the one variable is plotted, but I wish the two in bars. If
someone can help thank you



     tiempo lugar prec1 prec2

1      t1    a1     1     1

2      t2    a1     2     2

3      t3    a1     4     3

4      t4    a1     3     2

5      t5    a1     6     3

6      t6    a1     3     2

7      t7    a1     5     4

8      t8    a1     4     5

9      t1    a2     6     6

10     t2    a2     3     3

11     t3    a2     3     6

12     t4    a2     2     3

13     t5    a2     6     7

14     t6    a2     5     4

15     t7    a2     7     4

16     t8    a2     3     2

View(malla)



library(ggplot2)

gr4 <- ggplot(malla, aes(x=tiempo,
y=prec1),color="blue",aes(x=tiempo,y=prec2),color="red")+
geom_bar(stat="identity")

gr4 + facet_grid(lugar ~.)

	[[alternative HTML version deleted]]



Más información sobre la lista de distribución R-help-es