r - 在 DESeq2 PCA 上为不同的 geom_point 形状添加黑色轮廓
问题描述
我正在使用 DESeq2 包运行 PCA,并希望在已经基于观察的形状上获得黑色轮廓。圆形的工作,但其他形状没有。
例如Make stat_ellipse {ggplot2} outline geom_point fill color 或Place aborder around points将数据绘制为一个唯一的形状。
很难给出一个可重现的例子,因为它以前在一个大数据集上执行过 PCA,但这是我运行的以下内容:
ggplot(pcaData, aes(x = PC1, y = PC2, color = dFe, shape = location))+
geom_point(size=5)+
geom_point(aes(PC1, PC2, color = dFe, shape = location), shape= 21, colour="black", size= 5)
我相信关键在于新层的编码geom_point
跑步scale_fill_manual I get the following
ggplot(pcaData, aes(x = PC1, y = PC2, color = dFe, shape = location))+
geom_point(size=5)+ scale_shape_manual(values=c(21,22,23))
解决方案
推荐阅读
- c - 管道时如何禁用ansi颜色?
- html - 如何在材料自动完成组件中获取对 mat-option 对象的引用
- jenkins - 使用詹金斯管道通过字符串比较在不同参数值之间切换
- php - JSON Post PHP (TypeForm)
- sql - BigQuery 分区表:指定月份的最短方法是什么?
- java - Java 服务:什么导致延迟响应时间尖峰?
- css - 从图像中删除重叠并使图像下方的标题跨列延伸
- html - input type="number" 在 Firefox 中工作错误
- c# - Asp.net Core Razor Pages 序列化不适用于 Startup.cs 中的 CamelCasePropertyNamesContractResolver
- regex - spring mvc特殊字符