Not a full function to do this, but one of the examples for the clipplot function in the TeachingDemos package shows one way to do something similar to what you describe.
-- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Carl Witthoft > Sent: Saturday, August 16, 2008 11:54 AM > To: r-help@r-project.org > Subject: [R] To package or not to package? > > I'd like a little advice as to when it's appropriate to > create an R-package and submit it, as opposed to just > providing the source to some simple code. > In this case, I've written a function that draws a line plot > (with options for points, etc) where the color of the line > changes at specified values of the y-data (e.g., it's one > color below -10, another color between -10 and -5, etc). > It's pretty clean, and has a few error-checks, > self-correctors, etc., so I would be happy to provide it to > the community as a whole. > So, is this worthy of a package, or should I just post the > function code (well commented)? > Or is this feature available deep inside some graphing > package I haven't found yet? :-( > > thanks for all advice. > Carl > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.