time

references:
- ISI, example 2.2, p.121

data

time estimate

time <- read.csv("TimeEstimate.txt", header = TRUE)
head(time)
##   Estimate
## 1       10
## 2       12
## 3        6
## 4       13
## 5       15
## 6       10
str(time)
## 'data.frame':    48 obs. of  1 variable:
##  $ Estimate: int  10 12 6 13 15 10 15 21 10 15 ...
table(time$Estimate)
## 
##  5  6  7  8 10 12 13 15 20 21 22 30 
##  1  1  3  6 11  3  3 10  4  1  1  4

Which type of plot is preferable here? … barplot or histogram (+ density plot)?

SOLUTION:

barplot

ggplot(time, aes(Estimate)) +
  geom_bar(fill = "turquoise") +
  labs(title = "Sample Distribution of Estimate")