Increase boxplot name size in R

I'm having trouble finding an answer for this, since I don't want to increase the size of the label on the x axis, but the name attribute of my boxplot.

I create a 1x3 substring, in each box 3 windows are shown.

data1 = c(d1, d3, d3) data2 = c(e1, e2, e3) data3 = c(f1, f2, f3) lbls = c("Label 1", "Label 2", "Label 3") par(mfrow=c(1,3)) boxplot(data1, names=lbls, ylab="Components", main="First Plot", ylim=c(0,1500)) boxplot(data2, names=lbls, ylab="Components", main="Second Plot", ylim=c(0,1500)) boxplot(data3, names=lbls, ylab="Components", main="Third Plot", ylim=c(0,1500)) 

I tried playing with things like par(cex.lab=1.5) , boxplot(..., label.cex=1.5) , etc., but nothing actually increases the size of the name field, but only the axis of the labels.

+7
source share
1 answer

Using the par() command with the appropriate command will allow you to resize it.

Try using one of the following two commands with different sizes, and this should work for you.

 par(cex.lab=1.5) # is for y-axis par(cex.axis=1.5) # is for x-axis 
+19
source

All Articles