[R] hist densities

2008-03-21 Thread Luke Spadavecchia
Hi there, I was wondering why x-rnorm(n=5000,mean=1.5,sd=0.25) h-hist(x) sum(h$density) [1] 10 I thought the integral of the histogram should be one? These seems strange to me, or am I being silly... Regards Luke Spadavecchia PS. I'm using R 2.5.1 on Mac OSX

Re: [R] question on image() function?

2007-11-08 Thread Luke Spadavecchia
You could try using levelplot from the lattice package: library(lattice) levelplot(mcpvalue~x+y) failing that, interpolate them to a grid using akima or fields then display with image L On 8 Nov 2007, at 18:13, Duncan Murdoch wrote: On 11/8/2007 11:51 AM, zhijie zhang wrote: Dear friends,

[R] Polygon shading line colors

2007-10-30 Thread Luke Spadavecchia
I change the colors of the shading? The help file doesn't seem to detail this, so any suggestions would be greatly appreciated. Many thanks Luke Spadavecchia __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] x11 window queston

2007-10-29 Thread Luke Spadavecchia
windows as pdf, bmp etc with dev.print(), but I would rather retain the graphics in an open x window, so I could keep the plots on screen after a system call to R from other programs. Many thanks Luke Spadavecchia PS. I am running R-2.4.1 on Mac OS X (intel processor), and Windows XP

Re: [R] X11 graphics windows under CMD BATCH

2007-10-28 Thread Luke Spadavecchia
, but rather something to do with the way that R and X11 communicate? Many thanks Luke Spadavecchia __ 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-guide.html

[R] X11 graphics windows under CMD BATCH

2007-10-24 Thread Luke Spadavecchia
not doing the annealing in R for reasons of speed: I only want to use R as a graphics engine. Many thanks Luke Spadavecchia __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R