I'm trying to plot some data, one of my experimental groups is named SiO₂. I load a .txt datasheet using read.table and then I change the col names with colnames()<-.
colnames(cells_df2) <- c("ID","Ctrl","SiO\u2082","pSLG","fSLG")
Here is a subset of my data.
head(cells_df2)
ID Ctrl SiO2 pSLG fSLG
1 1 5.68565 9.48 14.77580 33.04500
2 2 6.79996 32.00 14.35580 33.04500
3 3 21.77180 8.14 16.49780 7.61765
4 4 16.30750 8.14 1.87977 7.61765
5 5 11.16920 19.20 5.54189 28.47990
6 6 11.31430 8.26 15.59490 28.47990
Then, I gather
ed of this data.frame
Cells_tidy3<-gather(cells_df2,"group","ym",-ID)
ID group ym
1 1 Ctrl 5.68565
2 2 Ctrl 6.79996
3 3 Ctrl 21.77180
4 4 Ctrl 16.30750
5 5 Ctrl 11.16920
6 6 Ctrl 11.31430
Finally I plot them
ggboxplot(Cells_tidy3,"group","ym")
I have tried to use expression
, parse
, stringi
package with scarce results.
If I ask for capabilities()
jpeg png tiff tcltk X11 aqua http/ftp
TRUE TRUE TRUE TRUE FALSE FALSE` TRUE
sockets libxml fifo cledit iconv NLS profmem
TRUE TRUE TRUE TRUE TRUE TRUE TRUE
cairo ICU long.double libcurl
TRUE TRUE TRUE TRUE
Then I tried:
png()
ggplot(az, aes(x = "SiO\u2082", y = value)) +
geom_boxplot() +
xlab("")
dev.off()
Which lead to this graph