[R] values in graph points

David Winsemius dwinsemius at comcast.net
Tue Jun 23 23:15:58 CEST 2009


On Jun 23, 2009, at 5:04 PM, Romildo Martins wrote:

> Hello,
>
> How to add x values in graph points?

Most people would call those y-points, nonetheless, you should be  
looking at:

?text
>
> Thanks a lot,
>
> Romildo
>
> x <- c(22.44, 20.14, 15.85, 15.97)
> plot(x, type="n", axes=FALSE, ann=FALSE, labels=c(22.44, 20.14, 15.85,
> 15.97))
> par(lwd=1)
> lines(x)
> points(x, pch=5, bg="grey", cex=1.5)
> axis(2, las=1)
> axis(1, at=1:4, lab=c("none", "50-50", "80-20", "90-10"))
> box()
> title(xlab="Partitioning")
> title(ylab="Seconds")

text(x, x=(1:4), y=x-.15)
>

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list