This kind of plot can be easily created using ggplot2 .
dat <- data.frame(Frequency = c(10, 5, 97, 47, 50), Fruits = gl(5, 1, labels = c("Mango", "Apple", "Orange", "Guava", "Papaya"))) library(ggplot2) ggplot(dat, aes(x = Fruits, y = Frequency)) + geom_bar(stat = "identity") + geom_text(aes(label = sprintf("%.2f%%", Frequency/sum(Frequency) * 100)), vjust = -.5)

source share