Hello,
 
I'm trying to plot a historgram with a density plot superimposed:
 
hist(x, seq(-1, 1, by = 0.1), prob = T, col = "blue")
lines(density(x,  bw = 0.1))
rug(x)
 
I don't want to add rug(x) but the histogram will not be plotted unless
rug(x) is there. It does not work if the "hist" line alone is present.
Can you help?
Thanks,
Kim
 
 
 

	[[alternative HTML version deleted]]


