[R] Managing axis labels

Ivan Calandra calandra at rgzm.de
Tue Mar 28 11:14:45 CEST 2017

Hi Jamil,

You first need to specify 'xaxt' and 'yaxt' in your plot() call, and 
then you can set the size of the labels with cex.axis:

plot(x, y, xlab=expression(vartheta), ylab="Concentration", xaxt="n", 
yaxt="n")axis(1, cex.axis=3) axis(2, cex.axis=2)


Ivan Calandra, PhD
MONREPOS Archaeological Research Centre and
Museum for Human Behavioural Evolution
Schloss Monrepos
56567 Neuwied, Germany
+49 (0) 2631 9772-243

On 27/03/2017 20:26, Naser Jamil wrote:
> Dear R-users,
> I would like to ask probably a silly thing. For some reason, I need x-axis
> and y-axis labels to be of different size. Here is a little example where I
> want "ϑ" to appear bigger than "Concentration". I have tried in the
> following way, but it is not working.
>> x<-seq(1,10,1)
> y<-seq(2,20,2)
> plot(x, y, xlab=expression(vartheta), ylab="Concentration", cex.axis=1.5)
> axis(1, cex.lab=3.0)
> axis(2, cex.lab=2.0)
> Any suggestion will be much appreciated.
> Kind Regards,
> Jamil.
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list