I want a pie chart instead of a table
method <- dataframe (stringsFactors=FALSE,method=c("violent","nonviolent"),accessiblepeople = (20000,60000)
usage <- dataframe (stringsFactors=FALSE,method=c("violent","nonviolent"),usage = (30%,70%)
ggplot(method, aes(x=method,y=accessiblepeople) geom_bar(stat="identity") ggtitle("") ggpiechart())
Problem add piechart seems not working
CodePudding user response: