Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

R histogram add label with percentage instead of rough values

$
0
0

I want to use hist() to make a histogram using percentages.

However, I also want to place a label at the top of each histogram bar showing the actual percentage.

Here is my code and a link to the output:

DataToPlot <- sapply(dataframe, as.numeric)

hist(DataToPlot, xlab="dataframe",ylab="Calls", main="Weekly data", col="lightgreen",labels = TRUE, ylim=c(0, 12000))

enter image description here


Viewing all articles
Browse latest Browse all 201839

Trending Articles