r - Pie chart in ggplot2 with different sections apart -


i trying make pie chart in ggplot2 figure below. each section of pie separated.

enter image description here

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 figure got this: enter image description here

the radius of each section not equal. hope me find out how make radius equal.


Comments

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -