Hello, How to add x values in graph points? 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") [[alternative HTML version deleted]]
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
Hi Romildo, thigmophobe.labels in the plotrix package might do what you want: thigmophobe.labels(x,y,labels=y,...) I have just had a bug report, so if you have any NA or NaN values in your x and y coordinates, wait for version 2.6-2 Jim