[R] Creating a histogram from a frequency vector

Nick Wray n|cho|@@@wr@y @end|ng |rom nt|wor|d@com
Wed Oct 9 18:39:19 CEST 2019


Aargh of course - so obvious I'd completely overlooked that.>.  Thanks Nick
> On 09 October 2019 at 16:21 Ivan Krylov <krylov.r00t using gmail.com> wrote:
> 
> 
> On Wed, 9 Oct 2019 16:12:57 +0100 (BST)
> Nick Wray via R-help <r-help using r-project.org> wrote:
> 
> > I have a vector like say 73,53,42,67,41,50 where these numbers are
> > the number of occurrences of the data values 1,2,3,4,5,6
> 
> > I can't see an elegant way <...> of creating a histogram from this
> > data set.  Is there one?
> 
> A histogram is a bar plot of frequencies of data values falling into
> specific bins, so you can reconstruct one yourself using the barplot()
> function.
> 
> -- 
> Best regards,
> Ivan



More information about the R-help mailing list