[R] Problem w/ axis and distortion in a plotting function
Martin Maechler
maechler at stat.math.ethz.ch
Wed Apr 17 17:30:16 CEST 2002
Hi Corey,
>>>>> "CoMo" == Moffet, Corey <Corey.Moffet at ttu.edu> writes:
CoMo> I have a function for plotting soil texture that I am
CoMo> having a problem with. The function is:
...........
(it would be helpful if together with the function,
you'd give an example call that we can use as well, i.e., with
"R builtin" or random (sand <- rnorm(...)) data, so we can
easily see what you mean)
CoMo> The label for the Sand axis (first text line above) is
CoMo> not shown.
you have an explicit xlab = "" -- so why would you expect a label?
CoMo> The second problem I have with this is that the
CoMo> triangle should be equilateral but when I print it the
CoMo> triangle is not. If I use par(pty = "s") before the
CoMo> plot.psd call than the triangle is always stretched
CoMo> vertically.
plot(...., asp = 1 ) ## !!!
This is found (only?) on help(plot.default),
a very nice feature and probably much under-used possibility
for specifying and fixing the ASPect ratio.
Does it help?
Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1228 <><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list