Hugo Scherer's avatar
Hugo Scherer committed
guides(fill=guide_legend(title='Mitigation measures')) # Colour theme, x and y labels, and changing the title of the legend
int<-  p2int+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
ext<-  p2ext+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
sand<-  p2sand+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
clay<-  p2clay+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL,title.theme =NULL)) # Colour theme, x and y labels, and changing the title of the legend
ggarrange(int, ext, sand, clay, common.legend = TRUE, legend = 'bottom')
ggsave('gridmacplot', device = 'jpg')
ggsave('\FARMDYNDATA\gridmacplot', device = 'jpg')
ggsave('/FARMDYNDATA/gridmacplot', device = 'jpg')
ggsave('C:/FARMDYNDATA/gridmacplot', device = 'jpg')
p2ext <- p1ext + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
) + ggtitle('Extensive farm')
p2sand <- p1sand + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ggtitle('Sandy Soil')
p2clay <- p1clay + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ggtitle('Clay Soil')
total<-  p2total+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title='Mitigation measures')) # Colour theme, x and y labels, and changing the title of the legend
int<-  p2int+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
ext<-  p2ext+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
sand<-  p2sand+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
clay<-  p2clay+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL,title.theme =NULL)) # Colour theme, x and y labels, and changing the title of the legend
ggarrange(int, ext, sand, clay, common.legend = TRUE, legend = 'bottom')
p2int <- p1int + geom_text(aes(x=wt, y=MAC+10,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ ggtitle('Intensive farm')
p2ext <- p1ext + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
) + ggtitle('Extensive farm')
p2sand <- p1sand + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ggtitle('Sandy Soil')
p2clay <- p1clay + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ggtitle('Clay Soil')
total<-  p2total+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title='Mitigation measures')) # Colour theme, x and y labels, and changing the title of the legend
int<-  p2int+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
ext<-  p2ext+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
sand<-  p2sand+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
clay<-  p2clay+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL,title.theme =NULL)) # Colour theme, x and y labels, and changing the title of the legend
ggarrange(int, ext, sand, clay, common.legend = TRUE, legend = 'bottom')
p2ext <- p1ext + geom_text(aes(x=wt, y=MAC+18,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
) + ggtitle('Extensive farm')
p2sand <- p1sand + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ggtitle('Sandy Soil')
p2clay <- p1clay + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ggtitle('Clay Soil')
total<-  p2total+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title='Mitigation measures')) # Colour theme, x and y labels, and changing the title of the legend
int<-  p2int+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
ext<-  p2ext+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
sand<-  p2sand+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
clay<-  p2clay+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL,title.theme =NULL)) # Colour theme, x and y labels, and changing the title of the legend
ggarrange(int, ext, sand, clay, common.legend = TRUE, legend = 'bottom')
p2ext <- p1ext + geom_text(aes(x=wt, y=MAC+20,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
) + ggtitle('Extensive farm')
p2sand <- p1sand + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ggtitle('Sandy Soil')
p2clay <- p1clay + geom_text(aes(x=wt, y=MAC+15,
label=scales::percent(pct)),
position = position_dodge(width = .9),    # move to center of bars
size = 3
)+ggtitle('Clay Soil')
total<-  p2total+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title='Mitigation measures')) # Colour theme, x and y labels, and changing the title of the legend
int<-  p2int+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
ext<-  p2ext+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
sand<-  p2sand+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL)) # Colour theme, x and y labels, and changing the title of the legend
clay<-  p2clay+theme_clean()+
scale_fill_economist()+
ylab('Marginal Abatement Cost (EUR/t)')+
xlab('CO2-eq Emissions Reduction (1000 t)')+
guides(fill=guide_legend(title=NULL,title.theme =NULL)) # Colour theme, x and y labels, and changing the title of the legend
ggarrange(int, ext, sand, clay, common.legend = TRUE, legend = 'bottom')
setwd('/Users/Desktop')
setwd('/Users/scher043/Desktop')
setwd
setwd('C:/Users/scher043/Desktop')
# Author: Hugo Scherer