Correlation
Correlation.R # ============================================================ # Tutorial on drawing a correlation map using ggplot2 # by Umer Zeeshan Ijaz (http://userweb.eng.gla.ac.uk/umer.ijaz) # ============================================================= abund_table<- read.csv ( "SPE_pitlatrine.csv" , row.names = 1 , check.names= FALSE ) #Transpose the data to have sample names on rows abund_table<- t ( abund_table ) meta_table<- read.csv ( "ENV_pitlatrine.csv" , row.names = 1 , check.names= FALSE ) #Filter out samples with fewer counts abund_table<-abund_table [ rowSums ( abund_table ) > 200 , ] #Extract the corresponding meta_table for the samples in abund_table meta_table<-meta_table [ rownames ( abund_table ) , ] I changed the parameters #You can use sel_env to specify the variables you want to use and sel_env_label to specify the labes for the pannel sel_env<- c ( "pH" , "Temp" , "TS...