Re: [R] plot 2 bars

2008-05-13 Thread Yasir Kaheil
try: obs_data<- c(26,43,20,14,18); pre_gam<-c(26.284,61.101,29.016,11.160,11.439) (obs.hist <- hist(obs_data, breaks = 10, plot = FALSE)); plot(obs.hist) plot(obs.hist, border = "dark blue", col = "light blue", xlab ="whatever") (pre.hist <- hist(pre_gam, breaks = 10, plot = FALSE)); lines(pre.his

[R] plot 2 bars

2008-05-13 Thread Roslina Zakaria
 Hi r-expert, How do I plot this 2 histogram side by side so that it is easy to compare for bin range 0,5,10,15, 20 and more     obs_data  pre_gam [1,] 2695 2677.284 [2,]   43   61.101 [3,]   20   29.016 [4,]   14   11.160 [5,]   18   11.439 Thanks in advance. _