Dear all, I want to put 9 barplots side by side. My code below only print 5 names from 9 names I gave. Problem: how to print all of those 9 names? I use cex=0.8 but did not work, it gave me error message. d<-matrix(rpois(45,3),5,9) barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR", "TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS")) # with cex=0.8 (but not working) barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR", "TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS"),cex=0.8) Thanks in advance. -- Agus Susanto [[alternative HTML version deleted]]
Hi Agus, try this two ones d<-matrix(rpois(45,3),5,9) barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR", "TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS"),las=2) barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR", "TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS"),cex.names=.8) best Patrizio 2009/3/18 Agus Susanto <gusanto at gmail.com>:> Dear all, > I want to put 9 barplots side by side. My code below only print 5 names from > 9 names I gave. > Problem: how to print all of those 9 names? I use cex=0.8 but did not work, > it gave me error message. > > d<-matrix(rpois(45,3),5,9) > barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR", > ? ? ? ?"TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS")) > > # with cex=0.8 (but not working) > barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR", > ? ? ? ?"TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS"),cex=0.8) > > Thanks in advance. > -- > Agus Susanto > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > 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. >
Agus Susanto wrote:> Dear all, > I want to put 9 barplots side by side. My code below only print 5 names from > 9 names I gave. > Problem: how to print all of those 9 names? I use cex=0.8 but did not work, > it gave me error message. > > d<-matrix(rpois(45,3),5,9) > barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR", > "TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS")) > > # with cex=0.8 (but not working) > barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR", > "TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS"),cex=0.8) >Hi Agus, Have a look at the staxlab function in the plotrix package. Jim
Reasonably Related Threads
- to get the R-Squared value
- superscript text on graph legend
- mfrow
- lme4 problem: model defining and effect estimation ------ question from new bird to R community from SAS community
- Bug#745419: xen-utils-4.1: Pygrub fails to boot from LVM LV when something installed in the volume boot record