Re: [R] hist plot

2006-10-06 Thread David Barron
This is taken from the help for the hist function:

Typical plots with vertical bars are not histograms. Consider barplot
or plot(*, type = h) for such bar plots.

For example:
 x - rchisq(100, df = 4)

 op-hist(x, freq = FALSE, ylim = c(0, 0.2))
 plot(op$mids,op$counts,type=h)


On 06/10/06, Baoqiang Cao [EMAIL PROTECTED] wrote:
 Hi there,

 I really couldn't find out how to plot histogram with point/line instead of 
 rectangle for each bin? Any help please? Thanks!

 Best,
  -Cao

 __
 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
 and provide commented, minimal, self-contained, reproducible code.



-- 
=
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP

__
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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] hist plot

2006-10-06 Thread Jim Lemon
Baoqiang Cao wrote:
 Hi there,
 
 I really couldn't find out how to plot histogram with point/line instead of 
 rectangle for each bin? Any help please? Thanks!
 
This is a guess, but...

y-hist(rnorm(100,3),plot=FALSE)$counts
x-barplot(y,width=0.01,space=20)
points(x,y)

Jim

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] hist plot

2006-10-05 Thread Baoqiang Cao
Hi there,

I really couldn't find out how to plot histogram with point/line instead of 
rectangle for each bin? Any help please? Thanks!

Best,
 -Cao

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] hist plot and custom band width

2003-11-25 Thread Mathieu Drapeau
Hi,
I have some difficulties to figure how to set a range to my histogram bands.
I have values that are [0,50] and they appear once in my list. How 
can I do a histogram that include all the values between a range of 
1 together? [0,1],[10001,2],[21,3], ...

Thanks,
Mathieu
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] hist plot and custom band width

2003-11-25 Thread Jason Turner
Mathieu Drapeau wrote:

Hi,
I have some difficulties to figure how to set a range to my histogram 
bands.
I have values that are [0,50] and they appear once in my list. How 
can I do a histogram that include all the values between a range of 
1 together? [0,1],[10001,2],[21,3], ...
?hist
see the breaks argument.
Cheers

Jason

--
Indigo Industrial Controls Ltd.
http://www.indigoindustrial.co.nz
64-21-343-545
[EMAIL PROTECTED]
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help