Plot title for PCA in DESeq2
1
0
Entering edit mode
AL • 0
@38b25ea9
Last seen 11 hours ago
Japan

Hi, Very simple question but I couldn't find any answer online. I'm currently analyzing some RNAseq data using DESeq 2 and produced PCA plot using the plotPCA funtion. I want to add a simple title to my plot but I can't figure it out;

The current code I'm using that works without a title is this


plotPCA(vsdata, intgroup=c("infection","CellType"))

I tried using arguments like main = "my title" as follows


plotPCA(vsdata, intgroup=c("infection","CellType"), main = "my title" )

or adding a line like title("infection") which works for plotMDS when I worked with limma-voom


plotPCA(vsdata, intgroup=c("infection","CellType"))
title("infection")

However neither of those actually produced a title for my PCA plot.

Thanks in advance

DESeq2 • 49 views
ADD COMMENT
0
Entering edit mode
ATpoint ★ 4.7k
@atpoint-13662
Last seen 7 hours ago
Germany

The function uses ggplot2, so you need + ggtitle('title'). Please take a ggplot2 tutorial for details.

ADD COMMENT

Login before adding your answer.

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