You might try posting on the Bioconductor list instead. They might
have more suitable tools for what you are trying to do. It shoudn't
hurt to ask, anyway ...
If you do this and find something there that better meets your needs,
please post back that information to this list so that others don't
w
Romero
CC: R help
Asunto: Re: [R] Error in heatmap
David,
You should cc r-help on all correspondence so others can follow the thread.
The error appears to be a result of the missing values yielded by the dist()
function on your matrix.
See https://stat.ethz.ch/pipermail/r-help/2009-July
and without "row.names=1"
>
> Both give me error.
>
> ** **
>
> Regards
>
> ** **
>
> David
>
> ** **
>
> *De:* Adams, Jean [mailto:jvad...@usgs.gov]
> *Enviado el:* 24 de octubre de 2013 11:52
> *Para:* David Romero
> *CC
ilto:jvad...@usgs.gov]
> *Enviado el:* 22 de octubre de 2013 07:03
> *Para:* David Romero
> *CC:* r-h...@stat.math.ethz.ch
> *Asunto:* Re: [R] Error in heatmap
>
> ** **
>
> Do you have a row or column that is all missing?
>
> sum(apply(is.na(as.matrix(SPIV2)
Do you have a row or column that is all missing?
sum(apply(is.na(as.matrix(SPIV2)), 1, all)) > 0
sum(apply(is.na(as.matrix(SPIV2)), 2, all)) > 0
For example, this code
m <- as.matrix(mtcars)
m[8, ] <- NA
heatmap(m, na.rm=TRUE)
throws this error
Error in hclustfun(dist
5 matches
Mail list logo