A typical way to add horizontal and / or vertical lines is arrow
set arrow from x1,y1 to x2,y2 nohead linestyle ...
For the horizontal line, y1 and y2 will be the same. From your question, I'm a little unsure what you mean by "at 22", but I assume that you want you to plot the y=22 line y=22 top of the histogram. If this happens, try this (before your plot command).
set arrow from graph 0,first 22 to graph 1,first 22 nohead lc rgb "#000000" front
mgilson
source share