In "normal" plots, I can do an axis at side = 2 and a different one at side = 4. I've not been able to figure out how to do the same thing with lattice plots. The scales list can have only one sublist named y. I had thought of using a separate viewport alongside with the text for the axis label, but I can't see how I could get the ticks to work. Ideas appreciated. Thanks. -- Patrick Connolly HortResearch Mt Albert Auckland New Zealand Ph: +64-9 815 4200 x 7188 ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~ I have the world`s largest collection of seashells. I keep it on all the beaches of the world ... Perhaps you`ve seen it. ---Steven Wright ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
On Wednesday 04 December 2002 10:13 pm, Patrick Connolly wrote:> In "normal" plots, I can do an axis at side = 2 and a different one at > side = 4. I've not been able to figure out how to do the same thing > with lattice plots. The scales list can have only one sublist named > y. I had thought of using a separate viewport alongside with the text > for the axis label, but I can't see how I could get the ticks to work.You probably won't be able to do this in lattice (and I can't think of a sensible way to modify lattice to allow this that would work for multipanel plots). Why do you need lattice for this ? If this is a single-panel plot, you could use grid directly. Set the viewport to whatever you want, draw in it (you could use a lattice panel function to do that if you want), and add the axes with grid.xaxis and grid.yaxis. Deepayan
Hello, I am using the sm and chron libraries to produce density plots, they are lat/lon locations of marine mammals. I am using Windows 2000, 1.6.0 The default image plot for sm.density is yellow on a red background - how can I change these colours? Neither sm.options nor par seem to cover this. It seems that I can use sm.regression to weight the density plots by attribute values at each point, but this can only be displayed in "persp". Can I display sm.regression surfaces as "image"? Or, weight an sm.density surface by attribute value? All I can think of is to increase the number of points in an area in proportion to the value I would like displayed. (The value I am interested in is the time between each point). Cheers, Mike.