Decrease font size of y axis on R software code

100 Views Asked by At

I am using the following code for dot plot.I have to write name of Indian states in y axis. but I am unable to control the font size.

dotchart(data, xlim = c(0, 1), pch = 20, col=c("darkblue","darkgreen"))
axis(2, at=seq(1,36, by=1), labels = FALSE)

lablist.y <- as.vector(c("Andaman & Nicobar", "Andhra Pradesh", "Arunachal Pradesh", "Assam", "Bihar", "Chandigarh", 
                         "Chhattisgarh", "Daman & Diu", "Delhi", "Dadra & Nagar Haveli", "Goa", "Gujrat", "Haryana", 
                         "Himachal Pradesh", "Jammu & Kashmir", "Jharkhand", "Karnataka", "Kerela", "Lakshadweep", 
                         "Madhya Pradesh", "Maharashtra", "Manipur", "Meghalaya", "Mizoram", "Nagaland", "Odisha", 
                         "Punjab", "Puducherry", "Rajasthan", "Sikkim", "Tamil Nadu", "Telangana", "Tripura", 
                         "Uttar Pradesh", "Uttarakhand", "West Bengal"))
text(y = seq(1, 36, by=1), par("usr")[1], 
     labels = lablist.y, pos = 2, xpd = TRUE)

I want to decrese the font size of y axis label(state names)

0

There are 0 best solutions below