Graph for PCs, can't apply colours to the points.
1
1
Entering edit mode
5.4 years ago

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)
R RNA-Seq • 799 views
ADD COMMENT
6
Entering edit mode
5.4 years ago

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

ADD COMMENT

Login before adding your answer.

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