id_data bras Time `Dose of estradiol`
<chr> <chr> <fct> <dbl>
1 16_ Progesterone Estradiol at S5-S6 588
2 16_ Progesterone Estradiol at S7-S8 318
3 16_ Progesterone Estradiol at D HCG 43
4 20_ Progesterone Estradiol at S5-S6 468.
5 20_ Progesterone Estradiol at S7-S8 470.
6 20_ Progesterone Estradiol at D HCG 395
7 22_ Progesterone Estradiol at S5-S6 108
8 22_ Progesterone Estradiol at S7-S8 108
9 22_ Progesterone Estradiol at D HCG 108
10 24_ Progesterone Estradiol at S5-S6 1369
That is head 10 of my dataset I want to make a boxplot with ggplot
gplot(base_c_e2_anova_Prog, aes_string(x="Time", y= "Dose of estradiol"))+
geom_boxplot(fill="#00AFBB")+
labs(title = "title")
I want the names of my two variables to be in quotes as the ggplot should be in a function()
and the names of the two variables (x, y) must be in quotes.
I don't know why aes_string doesn't work.
That is the error message:
Error in parse(text = elt) : <text>:1:6: unexpected symbol
1: Dose of
^