Pie charts using pie()

I am new to RStudio. I am trying to build a pie chart from an csv file using the pie() function.
I am getting the pie chart but the labels on them are wrong. I am getting the labels repeated throught he pie chart. Thanks in advance!

This is the function I am using
pie (table(computer_price$ram), computer_price$ram, main="Computer Ram",col = rainbow(length(table(computer_price$ram))),radius = 1, cex = 0.5)


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.