Skip to content

Commit

Permalink
Update [M]-(Frequency)-Vertical-Barplot.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wjiayis authored Dec 22, 2021
1 parent ca17758 commit d903679
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ HEC <- aggregate(Freq~Hair, HEC, sum)
```r
ggplot(data = HEC, aes(x = Hair, y = Freq)) + # dataset_variable
geom_bar(stat = "identity", fill = "pink") + # Colour
labs(title = "Barplot of Frequency of Hair Colour") + # Title
#geom_text(aes(label = Freq), vjust = -0.3, color = "black", size = 3.5) # 'Outside-bars' value labels
geom_text(aes(label = Freq), vjust = 1.6, color = "black", size = 3.5) # 'Within-bars' value labels
```

0 comments on commit d903679

Please sign in to comment.