library(ggplot2)
ggplot(mtcars, aes(x=hp, y=mpg)) + geom_point(aes(colour=factor(cyl))) + scale_colour_discrete(name="cyl") + facet_grid(. ~ cyl) + ggtitle('title');

theme_get()--> looks like it lists all the color variables, etc ... of the theme --> try to parse this ????


+xlab(expression(paste('ceci est un ',italic('test'),' a la con')))

ggplot(mtcars, aes(x=hp, y=mpg)) + geom_point(aes(colour=factor(cyl))) +xlab(expression(ceci est un italic('test') a la con));


+ scale_x_discrete("Title", labels=expression(toto, italic(tutu)))

//faire un truc qui convertit du java textarea en text formate R trouver comment gerer le bold + italic je pense pas trop dur a faire en fait mais a tester
ggplot(mtcars, aes(x=hp, y=mpg)) + geom_point(aes(colour=factor(cyl))) + ggtitle(expression(paste("example of title with ",italic("italics")," and ", bold("bold"), " and ", italic(bold("bold+italic")))))+ylab(expression(bold(paste(log~(x~µm^3~L^-1)))))
+xlab(expression(paste(theta,' = ',x)))
+xlab(expression(paste(alpha,' = ',x)))
+xlab(expression(paste(alpha,' = ',bold('x'))))
+xlab(expression(paste(alpha,' = ',sqrt(x)))) //--> sqrt x
+xlab(expression(x^2)) --> x square
+xlab(expression(paste (x^2, "+2*x+2"))) //--> x^2 + 2x+ 2 --> je commence a comprendre comment ca marche --> faire ca bien --> pas trop dur
+xlab(bquote(.('tesr') ~ x^2)) //--> ~ --> espace
+xlab(expression('title'[2])) //--> title + subscript 2
+xlab(expression('title'['bla bla'])) //--> title avec blabla en subscript
+xlab(expression('title'^'bla bla')) //--> title avec blabla en superscript
+xlab(expression(bolditalic('title'))) //--> bold + italic
+xlab(expression(underline(widehat(x %*% y)))) //--> undeline and wide hat
+xlab(expression(underline(widehat(x == y)))) --> x = y (si on met un seul egal ca ne marche pas)
+xlab(expression(theta^2)) --> theta au carre
+xlab(expression(theta^2 + 2*x)) --> ca marche
+xlab(expression(y == theta^2 + 2*x)) //--> ca marche y = ...
+xlab(expression(paste(y == theta^2 + 30, '°'))) //--> ca marche -- y =... +30° en gros paste permet de gerer un melange de maths et de texte


+xlab(expression(frac(10,3)))


?expression 
?plotmath --> donne ttes les commandes de math --> a faire
