How to change the dot size in plotPCA?
2
0
Entering edit mode
Yijing • 0
@0fcbf96d
Last seen 12 months ago
Germany

Hi everyone,

I am using plotPCA() function to create the PCA plot, but I do not know how to change the dot size.

Code as follwing:

plotPCA(rld, intgroup = "Tissue")

enter image description here Does anyone know how to change the dot size? I want it smaller.

Thank you for your help in advance:)

plotPCA PCA • 2.7k views
ADD COMMENT
0
Entering edit mode

Removed PCAtools tag.

ADD REPLY
0
Entering edit mode
ATpoint ★ 4.0k
@atpoint-13662
Last seen 10 hours ago
Germany

It's ggplot2, please search the web for solutions. Alternatively, use return.data (see function help) to fet the data and plot manually and user-defined towards shape, color, size etc.

ADD COMMENT
0
Entering edit mode
hediatnani • 0
@7819c1db
Last seen 10 months ago
Baltimore

The function plotPCA() is a function that has been defined to create the PCA plot using ggplot2.

To change the size of the dots in the PCA plot, you can modify the value of the size argument in the geom_point() function. A size argument set to 1 means the dots will be smaller than when it's set for larger values.

plotPCA(rld, intgroup = "Tissue") + geom_point(size=1)
ADD COMMENT

Login before adding your answer.

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