ano
> Sent: Tuesday, September 03, 2013 10:59 AM
> To: r-help@r-project.org
> Subject: [R] Legend Help
>
> Hi to everyone and thanks for this service.
>
> I have a doubt with legend, I have seen ?legend, but I don't get the
> way to write in my code the
>
> legen
Hi to everyone and thanks for this service.
I have a doubt with legend, I have seen ?legend, but I don't get the way to
write in my code the
legend that I want,
This is my code:
for( i in 1:4)}
pdf(paste("plotImputed", i,".pdf",sep=""))
plot(a[,6], type="l", main=paste( "I
This is very weird!!
I know the 'lty=1' command and I tried yesterday , many times!!
didnt work.
However, today, it worked!!!
Maybe the university's computer is stupid!
Thanks!
--
View this message in context:
http://n4.nabble.com/legend-help-tp1461992p1470216.html
Sent from the R help mailin
On 05.02.2010 00:24, casperyc wrote:
Yes, that is pretty much what I want.
However, there was slightly a mistake.
we need to use ''rate=rate[i]"" and "shape=shape[i]" because the default is
==
dgamma(x, shape, rate = 1, scale = 1/rate, log = FALSE
Yes, that is pretty much what I want.
However, there was slightly a mistake.
we need to use ''rate=rate[i]"" and "shape=shape[i]" because the default is
==
dgamma(x, shape, rate = 1, scale = 1/rate, log = FALSE)
==
Hi:
Try this, using the parText function given below:
# Generate the x's, vectors of rate and shape, densities and matplot
x <- 5 * ppoints(100)
rate <- rep(c(2, 4), each = 3)
shape <- rep(c(1, 3, 5), 2)
gamden <- matrix(NA, nrow = 6, ncol = 100)
for(i in 1:6) gamden[i, ] <- dgamma(x, rate[i], sh
i=1
for(rate in c(2,4) ){
for(shape in c(1,3,5) ){
curve(dgamma(x,rate,shape),xlim=c(0,3),ylab="",col=i,lty=i,add=T)
i=i+1
}
}
How can I add some legend to represent these lines?
i.e. the legend is displayed as
col=1 lty=1 lambda=2 theta=1
col=2 lty=2 lambda=2 the
7 matches
Mail list logo