Displaying 20 results from an estimated 10000 matches similar to: "hist(.) -- S compatibility : [a,b) versus (a,b] and ...."
1997 Dec 23
0
R-beta: bug in hist() (0.60/0.61)
I discovered a bug in hist().
Try the following:
x<-c(-5,-4,-4,-4,-3,-3,-3,-3,-2,-2,0,0,0,0,1,1,1,3,3,5,6)
# Note that sum(x)<0:
sum(x)
# [1] -13
hist(x)
# looks ok
hist(x,freq=F)
# negative bars !!
# and finally this gives not 1:
sum(hist(x,plot=F)$rel.freqs)
# [1] -0.8076923
The reason is, that "sum(x)" is used instead of "length(x)" in the following
line near
1997 Dec 02
2
R-beta: wish: hist() returning breaks and counts
Hi,
would it be possible to change the hist() function in future R Versions to
accept a "plot=F" parameter (like hist() in S it should return a list with
"breaks" and "counts" in this case). This change should be very simple.
Albrecht
-------------------------------------------------------------------------------
Albrecht Gebhardt email :
1997 Dec 02
2
R-beta: wish: hist() returning breaks and counts
Hi,
would it be possible to change the hist() function in future R Versions to
accept a "plot=F" parameter (like hist() in S it should return a list with
"breaks" and "counts" in this case). This change should be very simple.
Albrecht
-------------------------------------------------------------------------------
Albrecht Gebhardt email :
2003 Jan 08
1
Determining the break points by hist() leads to errors (PR#2432)
Hi,
if I dermine the break points using the hist() function and then try
to re-use these in a new histogram, R fails. Here is an example of the
problem:
##First, plot a histogram:
data(islands)
foo <- hist(islands,freq=T)
##Now, try plot it again, with the previously determined break points:
hist(islands,breaks=foo$breaks,freq=T)
##... this lead to the warning message:
Warning message:
1998 May 07
2
R-beta: 0.61.3: Problems on DEC Unix 4.0
Hi,
I had some trouble compiling the new R version on my Alpha:
make[2]: Entering directory `/usr2/local/R/src/graphics'
cc -ieee_with_inexact -O -Olimit 2000 -I/usr/local/include -I../include -c
gdevice.c
cc -ieee_with_inexact -O -Olimit 2000 -I/usr/local/include -I../include -c
graphics.c
cc: Error: graphics.c, line 808: An unexpected newline character is present in a
string literal.
1998 May 07
2
R-beta: 0.61.3: Problems on DEC Unix 4.0
Hi,
I had some trouble compiling the new R version on my Alpha:
make[2]: Entering directory `/usr2/local/R/src/graphics'
cc -ieee_with_inexact -O -Olimit 2000 -I/usr/local/include -I../include -c
gdevice.c
cc -ieee_with_inexact -O -Olimit 2000 -I/usr/local/include -I../include -c
graphics.c
cc: Error: graphics.c, line 808: An unexpected newline character is present in a
string literal.
2005 Jun 17
1
hist.default documentation
I think there are a couple of things in ?hist that are not quite as
clear as they could be.
(1)
freq: logical; if 'TRUE', the histogram graphic is a representation
of frequencies, the 'counts' component of the result; if
'FALSE', _relative_ frequencies ("probabilities"), component
'density', are plotted. Defaults to
2006 Aug 16
0
Strange behavior with "hist" function filled with breaks and freq attribute
Hy all,
I give example code :
connexions_jours<-c(1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,7,7,7,7,7,7,7,7,8,8,8,12,15,19)
pas_de_groupe<-1
hist(connexions_jours,col="red",xlab="RĂ©partition du nombre de connexions par jours (sans
2001 Feb 07
1
Re: failed rpm installation of R 1.2-1 (fwd)
On Wed, 7 Feb 2001, Faheem Mitha wrote:
> Dear Albrecht,
>
> Just sent the following message out to r-help. Have you any idea what this
> problem could be?
>
> Sincerely, Faheem Mitha.
>
> ---------- Forwarded message ----------
> Date: Wed, 7 Feb 2001 00:04:35 -0500 (EST)
> From: Faheem Mitha <faheem at email.unc.edu>
> To:
2006 Apr 05
1
hist function: freq=FALSE for standardised histograms
Dear All,
I am a undergraduate using R for the first time. It seems like an excellent
program and one that I look forward to using a lot over the next few years,
but I have hit a very basic problem that I can't solve.
I want to produce a standardised histogram, i.e. one where the area under
the graph is equal to 1. I look at the manual for the histogram function and
find this:
freq:
1998 Nov 16
2
hist()
Going over my old notes, I realised that hist() has changed since the
earlier versions of R, in that the intervals are now
left-open,right-closed rather than the opposite. This is a change in
the direction of S-plus compatibility, but I wonder how sensible it
really is.
The main problem is with ages, where you'd naturally take age 17 as
representing something between 17 and 18, but:
>
2001 Feb 08
0
RE: [R] Re: failed rpm installation of R 1.2-1 (fwd) (PR#841)
I'm forwarding this to R-bugs.
In R 1.2.1 the file $R_HOME/bin/maketitle.awk is installed as an
executable. It should not be since it is just a set of awk commands,
not a script file that can be run from the shell (This is a change from
R 1.2.0 in which the file $R_HOME/bin/maketitle was a shell script).
This confuses an rpm utility called "find-requires" which scans all
executable
2006 Nov 10
1
lattice: histogram of factor variable
Dear all,
I am encountering a problem with lattice in the current version 0.14-13
with R version 2.4.0 on a Windows XP system.
For example,
histogram(~voice.part, singer)
is not labeling the x labels according to the factor levels of
voice.part, which it should do (and has done in former versions of
lattice, as far as I remember).
In addition, I get the warnings
Warning messages:
1:
1998 Mar 04
1
pretty(.) bug -- fix --> "compatibility" ?
In current versions of R,
pretty(333)
gives an infinite loop
(due to a silent integer overflow in src/appl/pretty.c).
I've looked at this problem and also at what S-plus does,
(no code there to inspect, just experiments), and
then I have fixed pretty.c.
I think that it now behaves much more reasonably
(both than before and than S / S-plus).
The only problem:
pretty(.) is not
2000 Nov 17
2
hist() and density
There were some questions about hist() a couple of days ago which
triggered this post. My question/suggestion is about the y-axis in hist.
There are reasons to prefer making the y-axis density=relative
frequency/bin width. One reason is that the height of the plot does not
depend on the bin width; another is that if your histogram is in density
then you can easily superimpose a smooth theoretical
2001 Mar 05
1
histogram of frequencies (PR#861)
Full_Name: Dr. Bernd Winkler
Version: 1.2.2
OS: Linux
Submission from: (NULL) (194.59.179.176)
Hi all,
having updated to version 1.2.2 last week I experienced some strange behaviour
of
the hist function.
I want to plot a histogram of frequencies resp. counts, for example poisson
random numbers, on a predefined and fixed x scale
> hist(rpois(500, 2), breaks=0:10)
But instead of the
2006 Aug 25
1
How to get back POSIXct format after calculating with hist() results
Hi,
I have a casting/formatting question on hist.POSIXt:
The histogram plot from POSIXct works perfect (with help of Prof. Ripley
-thanks!).
When processing the hist(plot=FALSE) output and then plotting the
results over the x-axis (bins) coming from hist(), I lose the date/time
labels, getting instead integers displayed.
Trying to cast the $breaks with as.POSIXct gives silly results with
2004 Nov 26
2
hist and truehist
Hello!
Up to now I have been using hist() to display the distributions.
Howevere, I noteiced strange numbers on y (vertical) axis, if I used
probability = T or freq = F option. I thought it is a bug and launched
the R-bug system and found some posts on that matter. Brian Ripley
responded to one, that one should look at truehist() for that. Ok I can
use truehist() if I want to see the ratios
2009 Jul 26
2
problems hist() and density
Hello,
I have a problem with the hist() function and showing densities. The
densities sum to 50 and not to 1! I use R version 2.9.1 (2009-06-26) and
I load the seqinR library.
My data is the following vector:
[1] 0.1400000 0.2000000 0.2200000 0.2828283 0.1600000 0.1600000
0.3600000
[8] 0.1600000 0.2200000 0.2600000 0.2000000 0.3000000 0.2200000
0.2342342
[15] 0.1800000 0.2200000 0.1600000
1997 Nov 26
0
R-beta: library format for R-0.60
Currently I'm porting the spatial library from
"Venables W.N., Ripley, B.D. (1995): Modern applied statistics with S-PLUS,
Springer"
to R. Now it seems to work with R-0.50-a4, but I guess it has to be adjusted
when R 0.60 comes out.
So my questions are:
What changes will appear in library sources (directories, Makefile, help
page format)?
Can I get an unofficial pre-version