中空极坐标柱状图

作者: 吴十三和小可爱的札记 | 来源:发表于2019-10-19 16:11 被阅读0次

    tr <- rtree(30)

    df <- data.frame(id = rep(tr$tip.label, each = 2),
    value = abs(rnorm(60, mean = 0)),
    category = rep(LETTERS[1:2], 30))

    ggplot()+ geom_col(aes(x = id, y = value, fill = category), data = df) +
    ylim(-1, NA) +
    coord_polar()+
    theme_bw()


    P.png

    相关文章

      网友评论

        本文标题:中空极坐标柱状图

        本文链接:https://www.haomeiwen.com/subject/bdhnmctx.html