At our facility we have multiple sample points that are sampled on any given day. What I would like to do is create a map of the facility with the sample points (and point labels) and when we have out of specification results, place a transparent dot over the area on the map. As the number of OOS results builds up, I envision the dot getting darker. Are there any packages out there that can aid me in doing this? Thanks, Shawn Way, PE Engineering Manager ________________________________ "Policies are many, Principles are few, Policies will change, Principles never do." -John C. Maxwell
On Wed, 13 Oct 2004, Shawn Way wrote:> At our facility we have multiple sample points that are sampled on any > given day. What I would like to do is create a map of the facility with > the sample points (and point labels) and when we have out of > specification results, place a transparent dot over the area on the map. > As the number of OOS results builds up, I envision the dot getting > darker. > > Are there any packages out there that can aid me in doing this?See R 2.0.0 NEWS: o It is now possible to specify colours with a full alpha transparency channel via the new 'alpha' argument to the rgb() and hsv() functions, or as a string of the form "#RRGGBBAA". NOTE: most devices draw nothing if a colour is not opaque, but PDF and Quartz devices will render semitransparent colours. A new argument 'alpha' to the function col2rgb() provides the ability to return the alpha component of colours (as well as the red, green, and blue components). and output on the PDF device - works very nicely with the standard points() function and other graphics functions. For on-screen rendering, it looks as though only the Quartz device will do this, but PDF is cross-platform.> > Thanks, > Shawn Way, PE > Engineering Manager > > > ________________________________ > > "Policies are many, Principles are few, Policies will change, Principles > never do." > -John C. Maxwell > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no
Shawn Way wrote:> At our facility we have multiple sample points that are sampled on any > given day. What I would like to do is create a map of the facility with > the sample points (and point labels) and when we have out of > specification results, place a transparent dot over the area on the map. > As the number of OOS results builds up, I envision the dot getting > darker. >Over what timescale? This sounds like it could be an interactive, real-time on-line monitoring thing. Is it? In which case R's graphics devices might not be good enough, and you'd be better off using a TclTk graphics canvas. library(tcltk) and read the docs! Another idea, if all you are doing is updating a daily image, would be to use a language like Python, and the Python Imaging Library (PIL) to draw pretty graphs. I've done something similar that produces daily maps of disease incidence, but I used different size and colour circles and not transparency, so I just used base R graphics and produced a PNG file. If I wanted transparency I'd probably use Python/PIL, which can handle alpha channels. Baz
Thank you very much.. It seems that the points problem is fairly easy to solve, I just need to work on the mapping.. Thanks again... Shawn Way, PE Engineering Manager sway at tanox.com -----Original Message----- From: Barry Rowlingson [mailto:B.Rowlingson at lancaster.ac.uk] Sent: Thursday, October 14, 2004 5:42 AM To: Shawn Way Cc: R-help at stat.math.ethz.ch Subject: Re: [R] Maps and plotting Shawn Way wrote:> At our facility we have multiple sample points that are sampled on > any given day. What I would like to do is create a map of the > facility with the sample points (and point labels) and when we have > out of specification results, place a transparent dot over the area onthe map.> As the number of OOS results builds up, I envision the dot getting > darker. >Over what timescale? This sounds like it could be an interactive, real-time on-line monitoring thing. Is it? In which case R's graphics devices might not be good enough, and you'd be better off using a TclTk graphics canvas. library(tcltk) and read the docs! Another idea, if all you are doing is updating a daily image, would be to use a language like Python, and the Python Imaging Library (PIL) to draw pretty graphs. I've done something similar that produces daily maps of disease incidence, but I used different size and colour circles and not transparency, so I just used base R graphics and produced a PNG file. If I wanted transparency I'd probably use Python/PIL, which can handle alpha channels. Baz