Greetings.
These days I find myself writing a lot of functions to handle
routine things. One of these is a function to create a scatterplot
of variables and draw a lowessed line so I can get some idea if
there's any relationship between them.
lowessed.plot <- function(x, y)
{ plot(x, y)
lines(lowess(x, y))
}
However, there's a slight problem: the plot axes come out labeled
"x" and "y", which isn't what I want. I want the plot axes labeled
with the names of the variables I passed into lowessed.plot for x
and y. Is there any way to do that? Thanks in advance for any help
anyone can provide.
Aaron
-----
Aaron Solomon?? (??ben Saul Joseph??) ??Adelman
E-mail??: ??adelmaas at musc.edu
Web site??: ??http??://??people.musc.edu??/??~adelmaas??/??
AOL Instant Messenger?? & ??Yahoo??! ??Messenger: ??Hiergargo (YM
account now sometimes with the World's first statistical Webcam,
Moran's Eye)
AIM chat-room (preferred): Adelmania