Test RData: https://www.dropbox.com/s/hy56owg4mfjuxol/Test_Data.RData?dl=0
CSV: https://www.dropbox.com/s/hs6qpoxyg54ehid/Test_Data.csv?dl=0
Annotations: https://www.dropbox.com/s/akv66euwh3ulia2/Test_Data_Annotation?dl=0
Plotting this dataset runs as expected:
pheatmap(t(pred.MDSC), fontsize=8)
However, if I then attempt to add annotation to it (using the anno DF in the file):
pheatmap(t(pred.MDSC),fontsize=8,labels_col = rownames(anno), show_colnames = TRUE, annotation_col = anno)
It returns the error:
Error in annotation_colors[[colnames(annotation)[i]]] :
subscript out of bounds
What am I doing wrong?