Make samples symbols bigger in PCA / MDS analysis with plotMDS function
1
0
Entering edit mode
Raito92 ▴ 60
@raito92-20399
Last seen 21 months ago
Italy

Hello everyone, I'm currently running a MDS / PCA analysis in the context of a RNASeq experiment as suggested in this RNASeq edge quasi-likelihood pipeline and particularly through the R function plotMDS.

I'm working on a particularly complex dataset, with almost one hundred samples, and the samples appear to cluster in 4 different groups, quite distant on the plot. As a result, while inserted in a document (let's say, a Word page, but possibly also a scientific paper), the symbols appear very small.

Of course, I could provide a 90° rotated plot, but I was wondering if there is a way to make symbols bigger, so the resulting plot can be read better?

Thank you in advance for your help.

enter image description here

plotMDS PCA RNASeq MDS • 1.2k views
ADD COMMENT
2
Entering edit mode
@gordon-smyth
Last seen 37 minutes ago
WEHI, Melbourne, Australia

The symbol size is controlled the same way for plotMDS() as for any plot function in the stats package of R. The symbol size isn't determined by the function itself but rather by the graphic functions of R.

How exactly did you save the plot? Did you write is as a pdf, or as a Windows meta file, or as something else? What R function did you use to save the plot?

plotMDS gives you complete control over symbol size and other plotting parameters, but there is actually no need to manipulate any of those parameters. The reason the symbols are so small in the plot is that you created the plot with a very large width and height. If you simply make the virtual width and height of the plot window smaller, then the symbols and x- and y- labels etc will all become automatically relatively larger. If you are saving the plot from an interactive window, just make the window smaller.

ADD COMMENT
0
Entering edit mode

Hello, I produced the plot by executing its code through RStudio and then saving the plot from the menu Plots > Zoom Plot , and then saved manually from there with 'Save image as'.

enter image description here

Thanks to your message, I've realised that resizing the window will affect the plot width and heigh, solving my problem, thanks a lot for your help!

enter image description here

ADD REPLY

Login before adding your answer.

Traffic: 741 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