sorry forgot to attach reproducible code:


---------- Forwarded message ----------
Date: 2009/9/21
Subject: problems with Stackpoly, package Plotrix
To: r-help@r-project.org


Dear all,

I am fairly new to package Plotrix and I would like to ask you, if any of
you could help me with following.

a) I don't know how to set up border line width in the Stackpoly function
(seems that lwd from par doesn't work, or at least not in the way I have
written)
b) I don't know, how to rotate the x axis labels (I used srt=45, but same
problem as before).
c) Could anyone clarify to me, what does e.g. col= par("col") stand for in
the usage explanation? Does it somehow change the way I should call such
parameter?
d) the three dots in stackpoly usage are calling other parameters from plot,
however if in plot there are the three dots calling parameters from par, am
I able to call parameters from par directly in stackpoly?

Could anyone please help me?

library(plotrix)
xpopis<-c(0.9,0.99,0.999)
paste("1 in",round(1/(1-xpopis),1),sep=" ")
#n as number of subjects is 4
result<-c(0.3,0.15,0.4,0.15,0.5,0.1,0.12,0.28,0.45,0.25,0.2,0.1)
stackpoly(x=matrix(nrow=3,ncol=4,xpopis),y=matrix(nrow=3,ncol=4,result,byrow=T),
     xlim=c(0.85,1),ylim=c(0,1),
    xaxlab=paste("1 in",round(1/(1-xpopis),1),sep=" "),xat=xpopis,
     col=c("blue","red","green","cyan"),
border=gray(0.4),lty="dotted",lwd=0.1,stack=T,srt=45)
#lwd not working, how to make the border lines smaller?
#how to add srt of the x axis labels to be = 45? i.e. to rotate x axis
labels by 45 degrees?


Thank you, best regards, Vaclav

	[[alternative HTML version deleted]]


