Other than needing to use the new system (assuming you're in 0.9.2.1) it should work fine (it does on my machine).
qplot(1:10, 1:10)+
labs(y=expression(paste(log~Biovolume~µm^3~L^-1)))+
theme(axis.title.y = element_text(size=32,face="bold", colour="black",angle=120, vjust=1))R version 2.15.1 (2012-06-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_0.9.2.1
loaded via a namespace (and not attached):
[1] colorspace_1.1-1 dichromat_1.2-4 digest_0.5.2 grid_2.15.1 gtable_0.1.1 labeling_0.1
[7] MASS_7.3-21 memoise_0.1 munsell_0.4 plyr_1.7.1 proto_0.3-9.2 RColorBrewer_1.0-5
[13] reshape2_1.2.1 scales_0.2.2 stringr_0.6.1
On Thu, Sep 20, 2012 at 1:24 PM, Nils <
nils.g...@gmx.de> wrote:
> Dear community,
>
> I have a problem or there is a conflict using
> ylab(expression(paste(log~Biovolume~µm^3~L^-1))) and
> opts(axis.title.y=theme_text(size=16,face="bold",
> colour="black",angle=90,vjust=4.3)) at the same time. When I use each
> command separatley it works fine, but together, the x-axis disappears
> without any error message.
> Unfortunately, I need both commands to express the mathematical part
> (ylab(expression.....) and the size and colour of the y-axis title with the
> opts(.....)
> command. I searched now in different fora to find a solution. My idea was to
> put the size, colour and other properties of the y-axis.title in the ylab()
> command,
> but I didn´t succeed. So, perhaps you have any ideas or solution
>
> Thanks in advance,
>
> Nils
>
> P.S. Here my code:
>
> ggplot(R28meansd, aes(treat,
> meanbiov,shape=factor(disp)))+geom_point(size=5,position=pd)+geom_errorbar(aes(ymin=meanbiov-sdbiov,ymax=meanbiov+sdbiov),colour="black",width=.1,position=pd,size=.7)+opts(aspect.ratio=1.4)+theme_bw()
> +opts(axis.title.y=theme_text(size=16,face="bold",
> colour="black",angle=90,vjust=4.3))
> +ylab(expression(paste(log~(Biovolume~µm^3~L^-1))))
>
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
>
https://github.com/hadley/devtools/wiki/Reproducibility>
> To post: email
ggp...@googlegroups.com
> To unsubscribe: email
ggplot2+u...@googlegroups.com> More options:
http://groups.google.com/group/ggplot2