> fhist<-hist(Simulation,plot=FALSE)
> par(mar=c(6,0,6,6))
> barplot(fhist$counts,axes=FALSE, space=0,horiz=TRUE,col="lightgray")
i) Unlike hist(), barplot() does not plot at histogram bin boundaries - you'll
have noticed that you did not specify locations for the bars and in fact can
not do so
Hi bgnumis,
I'm too lazy to try to work out what "Simulation" contains, but try this:
Simulation<-sin(seq(0,6*pi,length.out=144))*5000+
2000*runif(144)+seq(8000,5000,length.out=144)
png("bb.png",width=800,height=400)
par(mfrow=c(1,2))
plot(Simulation,type="l",ylim=c(0,2))
abline(h = 0, lwd =
Hi all,
I want to plot two graphs and I use this :
par(mar=c(10,6,6,6))
matplot(Simulation,type="l")
abline(h = 0, lwd = 2, col = "black")
fhist<-hist(Simulation,plot=FALSE)
par(mar=c(6,0,6,6))
barplot(fhist$counts,axes=FALSE, space=0,horiz=TRUE,col="lightgray")
The question is, that the legt
3 matches
Mail list logo