Displaying 1 result from an estimated 1 matches for "attese".
Did you mean:
attest
2011 Mar 22
1
Problem with plot histogram
..., 143, 81, 26, 2, 3)
numgoal <- 0:5
lambda <- sum(goal*numgoal)/sum(goal)
plot(numgoal, goal, type="h")
x <- 0:5
y<-dpois(x, lambda)
att<-y*380
lines(x,att, type="h", col="red")
legend(x="topright", legend=c("Osservate", "Attese"), col=c("black","red"),
ncol=1, lty=1, lwd=3,
inset=c(0.01, 0.02), bg="white")
How can I draw the two lines one near other?
Thanks a lot to everyone
--
View this message in context: http://r.789695.n4.nabble.com/Problem-with-plot-histogram-tp3396873p339687...