\documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ybar, bar width=1, ymin=0, xtick=data, xtick pos=left, xticklabel style={rotate=90}, nodes near coords, xticklabels={The,be,to,of,and}, xlabel={Words}, ylabel={Frequency}, title={Frequency of parsed words}, ymajorgrids=true, grid style=dashed] \addplot [ color=red, fill=red!30 ] coordinates { (0,5) (1,4) (2,3) (3,2) (4,1) }; \end{axis} \end{tikzpicture} \end{document}