R method which builds word clouds