On 04/11/2014 07:59 PM, Mª Teresa Martinez Soriano wrote:

Hello to everyone,
I would like to put the variable names in the x-axis of this plot instead of 
number 1:63:

plotCI(1:num_col_comp,med,2.06*des/sqrt(n),lwd=1,col="red",scol="seashell4",main="Intervalo de 
confianza",xlab="Variables clínicas",ylab="Intervalo de confianza")abline(h=0, col="yellowgreen",lwd=1.8)

I don't find the way to do it, I tried with xlab option but it doesn't work and 
I tried as well creatting a data.frame with the rownames of the variables and 
the values 1:63
Any idea will be very appreciated
Thanks a lot
An example of the data set could be:y<-runif(10)
  err<-runif(10)
  plotCI(1:10,y,err,main="Basic plotCI")
  plotCI(1:10,y,err,2*err,lwd=2,col="red",scol="blue",
   main="Add colors to the points and error bars")
                                        
Hi Teresa,
Seems to be plotCI from plotrix, so try:

plotCI(1:10,y,err,main="Basic plotCI",xaxt="n")
xlabs<-c("one","two","three","four","five","six",
"seven","eight","nine","ten")
staxlab(1,at=1:10,labels=xlabs)

Jim

______________________________________________
R-help@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.

Reply via email to