Displaying 4 results from an estimated 4 matches for "emissions_from_well_pad".
2017 Nov 20
3
Σχετ: change colour in barplot
...rom land.csv")
> attach(emission)
> #define the formulas
> Emission_from_Land<-A*B*C*DEmission_from_Access_Road<-E*(F/1000000)*CEmissions_from_well<-(G/1000000)*E*C
> #combine my outputs into a new dataframe
> dat<-cbind(Emission_from_Land, Emission_from_Access_Road, Emissions_from_well_pad)
> #plot a barplot
> barplot(dat, ylab="Kg-CO2 Eq", ylim=c(0.0e+00, 2e+10), axisnames=FALSE, col=c("blue", "red", "orange"),
>? ??????? main ="Well Site Construction Emissions", legend.text=c("Land", "Access", "Well...
2017 Nov 20
0
Σχετ: change colour in barplot
...xample.
The problem is that you have dat as a matrix with only one row.
barplot() applies the colours to the rows of dat; since you have only
one row, everything ends up blue.
You can fix this by creating dat as a vector using
dat<-c(Emission_from_Land, Emission_from_Access_Road,
Emissions_from_well_pad)
or by using "beside = TRUE" in the arguments to barplot. These will
give similar but slightly different results; I don't know which one is
better for you, but I like the vector solution better.
Duncan Murdoch
>
> Hope this will help.
>
> Many thanks,
> Maria
&g...
2017 Nov 20
2
change colour in barplot
...read.csv("emission from land.csv")
attach(emission)
#define the formulas
Emission_from_Land<-A*B*C*DEmission_from_Access_Road<-E*(F/1000000)*CEmissions_from_well<-(G/1000000)*E*C
#combine my outputs into a new dataframe
dat<-cbind(Emission_from_Land, Emission_from_Access_Road, Emissions_from_well_pad)
#plot a barplot
barplot(dat, ylab="Kg-CO2 Eq", ylim=c(0.0e+00, 2e+10), axisnames=FALSE, col=c("blue", "red", "orange"),
??????? main ="Well Site Construction Emissions", legend.text=c("Land", "Access", "Well"),
?????...
2017 Nov 20
0
change colour in barplot
...rom land.csv")
> attach(emission)
> #define the formulas
> Emission_from_Land<-A*B*C*DEmission_from_Access_Road<-E*(F/1000000)*CEmissions_from_well<-(G/1000000)*E*C
> #combine my outputs into a new dataframe
> dat<-cbind(Emission_from_Land, Emission_from_Access_Road, Emissions_from_well_pad)
> #plot a barplot
> barplot(dat, ylab="Kg-CO2 Eq", ylim=c(0.0e+00, 2e+10), axisnames=FALSE, col=c("blue", "red", "orange"),
> ??????? main ="Well Site Construction Emissions", legend.text=c("Land", "Access", "Well...