Load compiled database (change path to location on your computer)

database<-read.csv("~/Dropbox/data_files/database/compiled_database.csv")

Here we will make some simple plots with ggplot. Next time, we will look at why ggplot is so useful: making complex and beautiful plots for publications.

library(ggplot2)
p<-ggplot(database, aes(x=f_14c,  y=f_c_org, col=f_property))+
        theme_bw(base_size = 6)+
         geom_point()
plot(p)
p<-ggplot(database, aes(x=f_property, col=f_property, y=f_c_tot))+
        geom_boxplot()
plot(p)
p<-ggplot(database, aes(x=f_13c))+
        geom_histogram()
plot(p)
p<-ggplot(database, aes(x=bd_tot, y=-layer_bot))+
        geom_point()
plot(p)


powellcenter-soilcarbon/soilcarbon documentation built on May 25, 2019, 11:24 a.m.