Thank you very much for your time and response.
Idid the following:
x1<-range(xvals)
hist(xvals,xlim=x1,ylim=NULL)
#now i'd like to plot a density plot only for the 1st 2 bars of the histogram by passing xvals in that range.
ds<-density(xvals[1:fr],bw=30,n=fr)
plot(ds$y ~ xvals[1:fr])
 
My second plot creates its own axis and gives a line going across the histogram(~10bars), when it should
only extend upto the second bar coz i passed only values upto bar 2 range. I need to use the histogram axis for my second plot as well. Please let me know if i can provide more detail.
Thanks in advance.
 
Choudary Jagarlamudi
Southwestern Oklahoma State University
STF 254
100 campus Drive
Weatherford OK 73096
Tel 580-774-7136

	[[alternative HTML version deleted]]


