Re: [R] hist single block plot issue

From: Guohui Ding <gohidg_at_gmail.com>
Date: Sat 18 Jun 2005 - 12:21:07 EST

In case #1, the argument 'breaks' can break the histogram cells: hist(y, breaks=c(0, 0.5, 1.0, 1.5, 2.0)) # not the same ^_^

2005/6/18, ap <ap@solarrain.com>:
>
>
> # CASE 1
> # The following plots a single cell or block for all three location 0,1,2.
> y <- rep(2,8)
> hist(y) # why is this a single block?
> hist(y,xlim=c(0,2)) # same thing
> hist(y,breaks=2) # same
>
> # CASE 2
> # adding a different value, plots as expected
> y <- append(y,0)
> hist(y) # plots as expected
>
> In most cases of the data I have variances in the data so this is not an
> issue. In some situations case #1 appears and I would like to
> differentiate it among the other values.
>
> Thanks
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>

-- 
ADDRESS: Bioinformatics Center, Shanghai Institutes for Biological Sciences, 
Chinese Academy of Sciences
320 Yueyang Road, Shanghai 200031, P.R.China
TELEPHONE: 86-21-54920086

	[[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Jun 18 12:23:54 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:50 EST