I have used the following ggplot
command:
ggplot(survey, aes(x = age)) + stat_bin(aes(n = nrow(h3), y = ..count.. / n), binwidth = 10)
+ scale
The EASIEST way to change WITHOUT modifying the underlying data is:
Create an object using the as_labeller
function adding the back tick mark for each of the default values:
hum.names <- as_labeller(c(50
= "RH% 50", 60
= "RH% 60",70
= "RH% 70", 80
= "RH% 80",90
= "RH% 90", 100
= "RH% 100")) #Necesarry to put RH% into the facet labels
We add into the GGplot:
ggplot(dataframe, aes(x=Temperature.C,y=fit))+geom_line()+ facet_wrap(~Humidity.RH., nrow=2,labeller=hum.names)