我有一个df包含以下数据的数据框。我想绘制logCPM两组 A 和 B 之间基因的表达。
Samples Type GeneA
Sample1 B 14.82995162
Sample2 B 12.90512275
Sample3 B 9.196524783
Sample4 A 19.42866012
Sample5 A 19.70386922
Sample6 A 16.22906914
Sample7 A 12.48966785
Sample8 B 15.53280377
Sample9 A 9.345795955
Sample10 B 9.196524783
Sample11 B 9.196524783
Sample12 B 9.196524783
Sample13 A 9.434355615
Sample14 A 15.27604692
Sample15 A 18.90867329
Sample16 B 11.71503095
Sample17 B 13.7632545
Sample18 A 9.793864295
Sample19 B 9.196524783
Sample20 A 14.52562066
Sample21 A 13.85116605
Sample22 A 9.958492229
Sample23 A …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用大量数据制作火山图。在这里显示一些数据。
tab7 <- structure(list(logFC = c(-1.27422400347856, -0.972370320302353,
-1.63545104297305, 0.921263558062452, -0.922767678335555, 1.12992019747864,
-1.12813908449641, -0.886389856541233, -1.56395091318283, -0.787704367926754,
0.774615263438003, -1.00983166398568, 1.26941043079936, 0.796918483265524,
-0.918242602294084, -0.832196243332996, 1.03096613040452, -0.817670622470357,
0.932412638932054, -1.51103619988004, 0.99279720767736, -0.723506437294531,
0.832067216048265, 0.839856396735337, -0.882234889894418), logCPM = c(7.86936217233427,
6.33767227465018, 5.14411397560036, 6.5874873826811, 7.82025605146652,
5.39870254174873, 5.32742166278357, 6.82202548031827, 3.08154645281093,
11.718268197204, 7.12821560768394, 5.61968280451023, 3.49750759570402,
7.11160629416375, 8.84669666906905, 6.74763398946045, 6.47266715414911,
8.68269736238628, 4.95579660996355, 3.19010537271808, 4.40038075369154,
8.15304798507271, 5.51204801844412, 6.55289240838477, 5.30047595313181
), F = c(82.3844641280083, 57.1521525156373, 63.0298758207238,
49.4757942110162, 47.8613242874421, 45.4868410091626, 45.1572301486676,
43.7556847965406, 42.3072570929808, 38.9673540472504, 38.7844055524106,
37.9172543011411, 37.1949696821981, 36.4845161241415, 36.388796490688,
36.1521771859631, 37.1195555247141, 35.1179262289968, 34.9714174442816,
34.3515229787112, …Run Code Online (Sandbox Code Playgroud) 我正在尝试制作一个框图,显示类型A和B之间的Gene表达式.但我想基于以下数据框"df"中提到的List对点进行着色:
Samples Type List GeneA
Sample1 B Other -4.778968547
Sample2 B Other -4.63232938
Sample3 B Other -5.695251042
Sample4 A Sample4 2.820003188
Sample5 A Other 7.487856546
Sample6 A Other 2.290055318
Sample7 A Other -1.183807203
Sample8 B Other -4.534681343
Sample9 A Other -5.140540608
Sample10 B Other -5.695251042
Sample11 B Other -5.695251042
Sample12 B Other -5.695251042
Sample13 A Other -5.071179371
Sample14 A Other 1.117824251
Sample15 A Other 4.42672296
Sample16 B Other -2.607036764
Sample17 B Other -4.154979727
Sample18 A Other -4.773270932
Sample19 B Other …Run Code Online (Sandbox Code Playgroud)