Question: Graph for PCs, can't apply colours to the points.
1
gravatar for fatimarasool135
10 days ago by
fatimarasool13530 wrote:

Hi,

I need help in drawing the graphs by using the R.

I have generated the graphs for genes by following code as but colours for each plot are not appeared in graph.

plot(pc$x[,1:2], pch = 21, bg = pData(bg_data)$Color, cex = 2, ylim = c(-100, 100), xlim = c(-100, 100), xlab = "PC1", ylab = "PC2", cex.lab = 1.4, cex.axis = 1.3)
rna-seq R • 138 views
ADD COMMENTlink modified 9 days ago by zx87547.8k • written 10 days ago by fatimarasool13530
5
gravatar for Jean-Karim Heriche
10 days ago by
EMBL Heidelberg, Germany
Jean-Karim Heriche20k wrote:

Read the docs. bg sets the background color of the points, To set the point color, use col.

ADD COMMENTlink written 10 days ago by Jean-Karim Heriche20k
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: 1067 users visited in the last hour