[R] ggplot - start axis label with superscript

2014-10-14 Thread Tom Walker
Dear help, I’m stuck trying to begin an axis label in ggplot with a superscript. While I’m fine using expression to insert them in between normal text in an axis label, this doesn’t appear to work at the start of an expression. For example: mydata <- data.frame(x = 1:10, y = 10:1) # this works

Re: [R] Mix of plain and italic text in ggplot categorical x-axis

2014-05-07 Thread Tom Walker
Brilliant - thanks very much for your help! Tom On 6 May 2014 23:08, David Winsemius wrote: > > On May 6, 2014, at 2:51 PM, Tom Walker wrote: > >> Hi, >> >> I need to generate bar charts where the x-axis is a factor that >> includes a mixture of species names (

[R] Mix of plain and italic text in ggplot categorical x-axis

2014-05-06 Thread Tom Walker
Hi, I need to generate bar charts where the x-axis is a factor that includes a mixture of species names (in italic) and control treatments (in plain text). I would like this to be represented in the contents of the axis labels, meaning that I need the x-axis to include both italic and plain text.