[R] Creating a histogram from a frequency vector

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Wed Oct 9 17:21:11 CEST 2019

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()

Best regards,

More information about the R-help mailing list