This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error In Drawing Histogram Of Microarray Data Using R

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

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).

1 answer

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

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

Log in to answer this question.