Question: How to rotate dotchart for gene expression profile?
0
gravatar for Benn
2.3 years ago by
Benn6.8k
Netherlands
Benn6.8k wrote:

Hello,

I have grouped some genes with hierarchical clustering and want to show the 'profile' of these groups in a plot. I found a nice plot called dotchart, which nicely summarizes the (z-scores) of the genes per sample. However, I would like to switch the x and y axis, but it seems impossible... From the manual (?dotchart) I cannot find a way to do this.

Does anyone has an idea how to do this?

Code:

dotchart(as.matrix(z_score_1[,3:20]), labels = "", pch=20, lcolor = "white", main="cluster 1")
rna-seq dotchart • 813 views
ADD COMMENTlink modified 2.3 years ago by willgilks260 • written 2.3 years ago by Benn6.8k
0
gravatar for willgilks
2.3 years ago by
willgilks260
United Kingdom
willgilks260 wrote:

Hi b.nota,

There doesn't seem to be a built-in option to rotate the chart. I suppose that you could write your own function based on changing the existing code. In the function code, either change the inputs for the x and y axes and coordinates, or change the angle of the text, and then rotate the chart png or pdf after you have created it.

ADD COMMENTlink written 2.3 years ago by willgilks260

I guess your second option is easiest, thanks!

ADD REPLYlink written 2.3 years ago by Benn6.8k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1060 users visited in the last hour