Re: [R] Add labels to dendogram

2020-03-26 Thread Luigi Marongiu
Thank you! On Thu, Mar 26, 2020 at 5:07 PM Peter Langfelder wrote: > Your code does not work because Tag is not numeric. You need to exclude > Tag from the data frame df and instead assign it as rownames. Also, dist > requires a numeric matrix, not data frame. > > df = as.matrix(data.frame(Healt

Re: [R] Add labels to dendogram

2020-03-26 Thread Peter Langfelder
Your code does not work because Tag is not numeric. You need to exclude Tag from the data frame df and instead assign it as rownames. Also, dist requires a numeric matrix, not data frame. df = as.matrix(data.frame(Healthy, Tumour, Metastasis)) or df = cbind(Healthy, Tumour, Metastasis) rownames(d