title: R - ggplot: Get the id of a clicked graph
body: <p>Plotly has the function event_data which will respond to clicks on points of a plot. However, you have to specify a "source" for event_data which identifies the plot you want to watch.</p>
  
  <p>Is this kind of feature available in ggplot too. If no, then how can we find the id of the clicked plot.</p>
  
  <p>Note: I am refering wordcloud as graphs and these graphs are generated dynamically. </p>