Does this do what you want: x <- runif(10) plot(x) # put min/max in red axis(2, at=round(range(x), 4), col.axis='red', las=2)
On 8/12/07, akki <[EMAIL PROTECTED]> wrote: > Hi, > I have values on y axe from 0.0001 to 3.086. When I do plot I have writen > values: 0.001, 0.050,1.000 ..., but how I can write on graph the minimum > value and maximum value, with all decimals (I don't want to use the format > 1e-0x)? I am using log scale. > > For example, if I have the values: > 0.0001 > 0.0015 > 0.0256 > 0.0236 > .... > 0.0201 > 2.9668 > 3.0086 > > I need have each 'x' value put on y axe, and add the value minimum and > maximum on my graph. > How can I do it? > > I do: > plot(o$a, log="y", type="l", col=colors[1], xlab="a_x", ylab="a_y", > cex.lab=0.8) > lines(o$b, type="l", pch=1, lty=1, col=colors[2]) > lines(o$c, type="l", pch=2, lty=2, col=colors[3]) > > to I draw my graph. > > Thanks in advance. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? ______________________________________________ R-help@stat.math.ethz.ch 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.