Observing composition of somatic signatures as barcharts
0
0
Entering edit mode
arsala521 ▴ 10
@arsala521-10976
Last seen 8.3 years ago

Hello

I am using SomaticSignature package in my study. After decomposition and inferring of signatures, I tried to visualize the signatures as heatmap and as barchart. The hetamap was generated successfully but not the barchart.

I used the following command to construct barchart:

plotSignatures(sigs_pca) + ggtitle("Somatic Signatures: PCA - Barchart")

The pdf file of R plot was generated but the size of the file was zero.

Can someone kindly tell me how to solve this problem?

Thanks

somaticsignatures • 1.3k views
ADD COMMENT
0
Entering edit mode

Can you please provide a reproducible example of this, especially covering how you save the plot as a pdf file?

ADD REPLY
0
Entering edit mode

Actually for the previous plots I constructed, things worked simply in the way that when I entered the command for plotting, the accurate pdf file of the plot was created in the working directory. However things didn't go well so smoothly with this command and file created in working directory had zero size. But when I used another method for saving the R plot, I got the correct files of the plot.

ADD REPLY
0
Entering edit mode

I'm not sure if I can follow, would you be interested in giving us an example for what worked and what not? If the plots produced by the package, I would be interested in improving this. If it is related to the method how you saved the plot, it will also be helpful to other users to see what the problem is. 

ADD REPLY

Login before adding your answer.

Traffic: 803 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6