I am trying to generate a heatmap with the pheatmap
package, however, I keep coming up against various issues (I am new to R). The code I am using is:
pheatmap(
mat = newdata,
color = colorRampPalette,
border_color = NA,
show_colnames = FALSE,
show_rownames = FALSE,
annotation_col = ColumnLabelsValue,
annotation_row = RowLabelsValue,
annotation_colors = NA,
drop_levels = TRUE,
fontsize = 10,
main = "Default Heatmap")
My data is all numeric and I have removed all NA values, but I am now getting this error.
Error in col[as.numeric(cut(x, breaks = breaks, include.lowest = T))] : object of type 'closure' is not subsettable
Can anyone suggest any resolutions?