Error In Drawing Histogram Of Microarray Data Using R
1
0
Entering edit mode
10.3 years ago

Hi I am testing number of cel files using R program but when I write the following command:

hist(data, col=cols) I receive this error:

Error in rep_len(col, k) : attempt to replicate non-vector

Can any one help me to solve this problem?

tnx in advance

r microarray • 2.9k views
ADD COMMENT
0
Entering edit mode

It is not possible to answer this question properly without more details and/or code. In particular, what is in the variable data?

However, the error suggests that cols is not a vector (of numbers representing colors).

ADD REPLY
0
Entering edit mode
10.3 years ago
PoGibas 5.1k

Welcome to biostars!
How about trying to replicate this example (Analysing microarray data in bioconductor) and then doing the same analysis with your data?

ADD COMMENT
0
Entering edit mode

Sure, I will try that and let you know whether my problem was solved or not. tnx

ADD REPLY

Login before adding your answer.

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