[R] Increase font size in plots

Blaser Nello nblaser at ispm.unibe.ch
Tue Mar 26 16:42:46 CET 2013


You can use the par function instead.

require('vioplot')
data1<-rnorm(100)
data2<-rnorm(10)
data3<-rnorm(1000)
par(cex.lab=2, cex.axis=2)
vioplot(data1,data2,data3)

Best,
Nello

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Alaios
Sent: Dienstag, 26. März 2013 16:15
To: R help
Subject: [R] Increase font size in plots

Hi
I am using violin plots (type of boxplots) and  I am trying to increase the font size in the plots.

It looks like that the violin plots do not work as "normal" plots as the cex parameters are ignored.

You can have a loot at the code below




require('vioplot')
data1<-rnorm(100)
data2<-rnorm(10)
data3<-rnorm(1000)
vioplot(data1,data2,data3,cex.lab=2,cex.axis=2)




Regards
Alex
	[[alternative HTML version deleted]]



More information about the R-help mailing list