MATLAB style stem plot with R

<div style = "width:60%; display: inline-block; float:left; "> Recently I wanted to plot an impulse response function with R and missed the MATLAB style stem plot for doing it. I couldn’t find an R function for it with a quick Google search so I made my own. So here is the function and a small example : #T...</div><div style = "width: 40%; display: inline-block; float:right;"><img src=' https://www.r-bloggers.com/wp-content/uploads/2009/11/stem1.png' width = "200" style = "padding: 10px;" /></div><div style="clear: both;"></div>