)) # for the y-axis
axis(1, at=seq(0, 100, 10)) # for the x-axis
As you would also see if you reproduced the plot, the bars become really
thin. I would very much appreciate any help on fixing this issue. Thanks so
much in advance!
--
View this message in context:
http://n4.nabble.com/Thin-bars
On 01/04/2010 08:25 AM, Whalojazz wrote:
Hi,
I am trying to plot a histogram with my dataset that has 68 elements, 67 of
which are zero and the last one is 18. It can be reproduced as follows:
x-array(0, dim=(68))
x[1] = 18
I am trying to plot its histogram using:
hist(x, breaks=10, xlim=c(0,
Just seting breaks=2 should fix your 'issue'.
But what could such a histogram possibly tell anyone?
Unless this is a pathological case in a more elaborate
analysis, I can't see any sense in what you're doing.
-Peter Ehlers
Whalojazz wrote:
Hi,
I am trying to plot a histogram with my dataset
Whalojazz wrote:
Hi,
I am trying to plot a histogram with my dataset that has 68 elements, 67 of
which are zero and the last one is 18. It can be reproduced as follows:
x-array(0, dim=(68))
x[1] = 18
I am trying to plot its histogram using:
hist(x, breaks=10, xlim=c(0, 100), axes=F)
axis(2,
break to the number
of nonzero entries in the x's count. I see your point about the histogram
but I believe it's important for me to show zero values as well.
Thanks a lot!
--
View this message in context:
http://n4.nabble.com/Thin-bars-in-R-hist-tp997908p997943.html
Sent from the R help mailing
.nabble.com/Thin-bars-in-R-hist-tp997908p997945.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting
6 matches
Mail list logo