I have to get into R for uni, so I only have around a month of experience with it. I wrote a function that creates a pie chart histogram of a vector:
pieChart