Thank you
But logFC should be in separated column while I finished with
> head(a)
Gene.Name cell-cell adhesion cell-matrix adhesion cell adhesion
1 AASS NaN NaN NaN
2 ABCC4 NaN NaN NaN
3 ABI3BP NaN NaN NaN
4 ABLIM1 NaN NaN NaN
5 ABLIM3 NaN NaN NaN
6 ACTA1 NaN NaN NaN
By dcast(GOplot,Gene.Name~GO.term )
I finished with
> head(a)
Gene.Name cell-cell adhesion cell-matrix adhesion cell adhesion
1 AASS 0 0 0
2 ABCC4 0 0 0
3 ABI3BP 0 0 0
4 ABLIM1 0 0 0
5 ABLIM3 0 0 0
6 ACTA1 0 0 0
But I don't know how to relate logFC with each gene in each term
Basically, it's a pivot table transformation. Remove 'logFC' column- pivot table- add 'logFC' column back.