Re: [R] Adding x-axis values to a histogram

From: Peter Alspach <PAlspach_at_hortresearch.co.nz>
Date: Wed, 12 Mar 2008 08:07:29 +1300

Diego

?axis

e.g.:

hist(rnorm(100))
axis(1, -3:2+0.5, rep('',6), tck=-0.01)

HTH .... Peter Alspach  

> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of diegol
> Sent: Wednesday, 12 March 2008 7:26 a.m.
> To: r-help_at_r-project.org
> Subject: [R] Adding x-axis values to a histogram
>
>
> Dear useRs,
>
> Is there a way one can add x-axis values to a histogram? Example:
>
> z = rgamma(n=1000, shape = 8, scale = 1000) hist(z, breaks = 30)
>
> Currently I see 4 x-axis values: 5000, 10000, 15000, 20000.
> Can I add more values or modify the ones currently showing? I
> tried ?hist, yet couldn't work this out.
>
> Thank you very much.
>
> -----
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
> Diego Mazzeo
> Actuarial Science Student
> Facultad de Ciencias Econůmicas
> Universidad de Buenos Aires
> Buenos Aires, Argentina
> --
> View this message in context:
>
http://www.nabble.com/Adding-x-axis-values-to-a-histogram-tp15
983513p15983513.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_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
> and provide commented, minimal, self-contained, reproducible code.
>

The contents of this e-mail are privileged and/or confidential to the named  recipient and are not to be used by any other person and/or organisation.  If you have received this e-mail in error, please notify the sender and delete  all material pertaining to this e-mail.



R-help_at_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 and provide commented, minimal, self-contained, reproducible code. Received on Tue 11 Mar 2008 - 19:11:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 11 Mar 2008 - 19:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive