donut-chart

ggplot2 pie and donut chart on same plot

独自空忆成欢 提交于 2019-11-27 00:06:32
I am trying to replicate this with R ggplot. I have exactly the same data: browsers<-structure(list(browser = structure(c(3L, 3L, 3L, 3L, 2L, 2L, 2L, 1L, 5L, 5L, 4L), .Label = c("Chrome", "Firefox", "MSIE", "Opera", "Safari"), class = "factor"), version = structure(c(5L, 6L, 7L, 8L, 2L, 3L, 4L, 1L, 10L, 11L, 9L), .Label = c("Chrome 10.0", "Firefox 3.5", "Firefox 3.6", "Firefox 4.0", "MSIE 6.0", "MSIE 7.0", "MSIE 8.0", "MSIE 9.0", "Opera 11.x", "Safari 4.0", "Safari 5.0" ), class = "factor"), share = c(10.85, 7.35, 33.06, 2.81, 1.58, 13.12, 5.43, 9.91, 1.42, 4.55, 1.65), ymax = c(10.85, 18.2,

ggplot2 pie and donut chart on same plot

允我心安 提交于 2019-11-26 09:19:26
问题 I am trying to replicate this with R ggplot. I have exactly the same data: browsers<-structure(list(browser = structure(c(3L, 3L, 3L, 3L, 2L, 2L, 2L, 1L, 5L, 5L, 4L), .Label = c(\"Chrome\", \"Firefox\", \"MSIE\", \"Opera\", \"Safari\"), class = \"factor\"), version = structure(c(5L, 6L, 7L, 8L, 2L, 3L, 4L, 1L, 10L, 11L, 9L), .Label = c(\"Chrome 10.0\", \"Firefox 3.5\", \"Firefox 3.6\", \"Firefox 4.0\", \"MSIE 6.0\", \"MSIE 7.0\", \"MSIE 8.0\", \"MSIE 9.0\", \"Opera 11.x\", \"Safari 4.0\", \