Home > front end >  cannot add pie chart in to a graphic
cannot add pie chart in to a graphic

Time:08-09

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:

You can use plot_grid from the package enter image description here

  • Related