Skip to content
Back to formatted view

Raw Message

Message-ID: <CAJOiR6Y8vjmt_yqoKiuuYqrs6hjC-We1KhOXZuigFiA-Eu5tvg@mail.gmail.com>
Date: 2020-04-03T02:29:24Z
From: Val
Subject: Label

Hi all,

I have a sample of data set,

dat <- read.table(header=TRUE, text='Lab count
A 24
B 19
C 30
D 18')

barplot(dat$count, names.arg=c("A", "B", "C","D"),
        col="blue",
        ylim = c(0,30),
        ylab = "Count",
        xlab = "Grade")

I want add the number of counts at the top of each bar plot. How can I do that?
Thank you in advance