ggplot2(堆积柱形图)
【ggplot2(堆积柱形图)】输入文件格式如下:
文章图片
library(ggplot2)
setwd("C:/Users/lenovo/Desktop")
data <- read.csv(file="111.csv",header = T)ggplot(data=https://www.it610.com/article/data, aes(x=Species, y=Value, fill=Type)) +
+geom_bar(stat="identity") +
+facet_grid(~Soft) +
+labs(title="Prediction of Disease-related Mutations.", x="", y="Percentage of deleterious mutations", fill="Type") +
+theme(plot.title = element_text(size=25, margin=margin(t=20, b=30)))
文章图片
参考链接:
http://theduke.at/blog/science/beginners-guide-to-creating-grouped-and-stacked-bar-charts-in-r-with-ggplot2/
https://stackoverflow.com/questions/21409850/generate-paired-stacked-bar-charts-in-ggplot-using-position-dodge-only-on-some
推荐阅读
- 堆积情感(11.19)
- R语言GGPLOT2绘制KOLMOGOROV-SMIRNOV KS检验图ECDF经验累积分布函数曲线可视化
- 剪菊花
- R语言_ggplot2 分面相关设置(facet)
- js插件|网页,html5,canvas,js 动态绘制柱形图
- 解决texlive化学式转换镜像经常偶发性进程堆积导致卡顿问题
- 关于|关于 RocketMQ ClientID 相同引发的消息堆积的问题
- 【原理】echarts双柱形图坐标轴数据差距太大,终于解决了
- [R|[R|ggplot2] ggplot2数据分析与图形艺术课后题:第三章
- 来自一位儿童的礼物(ggplot2|来自一位儿童的礼物(ggplot2 02)