0
I am a relative R newbie and am having some issues trying to change the colour palette used for annotations in pheatmap. I have created an annotated heatmap from the file Total_depth_avg_mag.txt using the following commands: library(vegan) library(gplots) library(dplyr) library('pheatmap') library(RColorBrewer) #Reads data into table, adds row names and deletes the first column dat<-read.table("Total_depth_avg_mag.txt", header = T) row.names(dat) <- dat$mag dat <- dat[, -1] # Produces annotation data_frame from input file data_annot_2 <- read.table("Mag_annot_taxonomy.txt", header = T) rownames(data_annot_2) = data_annot_2$mag data_annot <- data_annot_2["Taxonomy"] #Produces annotated heatmap pheatmap(dat, cluster_cols = F, cluster_rows = F...