aprendiz programa
2012-Aug-09 20:13 UTC
[R] help hist some 'x' not counted; maybe 'breaks' do not span range of 'x'
Hello Guys, I would like help in script R when I try to plot the histogram appears the error: Erro em hist.default some 'x' not counted; maybe 'breaks' do not span range of 'x' I using a file with more 1000 datas (vector) hist(dados[[1]], seq(0, 20, 0.5), prob=TRUE, xlab="chuva (mm/dia)",ylab="frequência", main="", cex.lab=1.6, cex.sub=3,cex.axis=3,cex.main=6) Please, someone could help me? Thanks Best Regards [[alternative HTML version deleted]]
David L Carlson
2012-Aug-09 20:32 UTC
[R] help hist some 'x' not counted; maybe 'breaks' do not span range of 'x'
Use summary(dados[[1]]). The error message is telling you that the data include values outside the 0 to 20 range you have specified. ---------------------------------------------- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of aprendiz programa > Sent: Thursday, August 09, 2012 3:13 PM > To: r-help at r-project.org > Subject: [R] help hist some 'x' not counted; maybe 'breaks' do not span > range of 'x' > > > > Hello Guys, > > I would like help in script R when I try to plot the histogram appears > the error: > Erro em hist.default some 'x' not counted; maybe 'breaks' do not span > range of 'x' > I using a file with more 1000 datas (vector) > hist(dados[[1]], seq(0, 20, 0.5), prob=TRUE, xlab="chuva > (mm/dia)",ylab="frequjncia", main="", cex.lab=1.6, > cex.sub=3,cex.axis=3,cex.main=6) > Please, someone could help me? > Thanks > Best Regards > [[alternative HTML version deleted]]