r - Pie chart in ggplot2 with different sections apart -
i trying make pie chart in ggplot2 figure below. each section of pie separated.
now want use ggplot2 make similar figure.
a = c("cell","cell part","response stimulus") b = c('155','166','100') tmp = as.data.frame(cbind(a,b)) ggplot(tmp2, aes(x=a,y=b, fill=a)) + geom_bar(stat='identity') + scale_fill_brewer(palette='dark2') + coord_polar(start=0) the radius of each section not equal. hope me find out how make radius equal.


Comments
Post a Comment