---------- Forwarded message ---------- From: <Postmaster@vs-m.tc.umn.edu> Date: Mon, Oct 28, 2013 at 10:53 AM Subject: Undeliverable mail To: hill0093@umn.edu Cc: Postmaster@vs-m.tc.umn.edu Your message was not delivered to the following recipients: R-help@r-proj.org: No such host Original-Recipient: rfc822;R-help@r-proj.org Final-Recipient: rfc822;R-help@r-proj.org Action: failed Status: 5.1.2 ---------- Forwarded message ---------- From: hill0093 University of Minnesota <hill0093@umn.edu> To: R-help@r-proj.org Cc: Date: Mon, 28 Oct 2013 10:53:16 -0500 Subject: Fwd: Labeling with a function of the scale value of an axis ---------- Forwarded message ---------- From: hill0093 University of Minnesota <hill0093@umn.edu> Date: Fri, Oct 25, 2013 at 12:05 PM Subject: Labeling with a function of the scale value of an axis To: R-core@r-project.org I am sending this to your email address because it is listed as the maintainer of graphics containing axis. Please deliver it to an appropriate person. This is an inappropriate R run:> xvalue<-c(5.2,1.3,9.7,2.8,8.1,4.7,6.6,7.4) > yvalue<-c(9,3,4,7,2,5,3,6) > plot(xvalue,yvalue) > axis(1,at=NULL,labels=1/xvalue,digits=5)Error in axis(1, at = NULL, labels = 1/xvalue, digits = 5) : 'labels' is supplied and not 'at' In addition: Warning message: In axis(1, at = NULL, labels = 1/xvalue, digits = 5) : "digits" is not a graphical parameter>I want a way (not changing the axis scale) of labeling (labels = the numbers at the tick marks) the axis with a mathematical function of what would be the scaled value at the tick mark. A commonly useful function is label=1/scaledValue(not 1/xvalue), but there are are other functions (user supplied) like changing units or format of the labels. For quick-plots, it would just use positions automatically computed for the scaled value, and it could (not necessarily) automatically adjust depending on the new sizes of the labels. There might also be parameters specifying the label's total number of digits and/or total width and/or number of digits after the point. It should be fairly easy for the writer of the R axis code to supply the extremely useful labels of at least the 1/value at the tick mark originally for value as a useful starter. Where the user wants the labels would be separate as it is now. I cannot modify axis or any other R code because of the complexity of the R (foreign) language which I cannor understand. Do I instead have to write subroutines that do this job using the current axis routine? Dewayne Hillman hill0093@umn.edu [[alternative HTML version deleted]]