Possible Duplicate:
How to plot two histograms together in R?
I want to plot two histograms together, both of them having same x axis units and y axis units. Two histograms are taken from two files, inp1 and inp2. I have tried the following code but it is not working:
x1<-hist(inp1, 120, plot = 0)
x2<-hist(inp2, 120, plot = 0)
hist(x1, x2, 240, plot = 1)