[R] Accessing plots in Trellis graphics

2007-05-31 Thread Sigbert Klinke
Hi,

I used xyplot to create conditional scatterplots.  My layout is 5x3 
plots, but my data contains only 14 subgroups. So I would like to use 
the empty plot to display additional information about the data. How can 
I access the plot?

Thanks in advance

  Sigbert

---
Here my call:

xyplot(yf~xf|id, data=data, pch=19, cex=0.5, col=black,
 panel=function(x,y, subscripts, ...) {
  ...
 },
 strip=function(..., factor.levels, fg, bg) strip.default(..., 
factor.levels=levels, style=4, strip.names=c(F,F), strip.levels=c(F,T), 
fg=bg), 
 layout=c(5,3),
)

__
R-help@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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Accessing plots in Trellis graphics

2007-05-31 Thread Vladimir Eremeev

I used similar empty space to place the legend, by specifying the placement
coordinates to the key argument of xyplot. 
This was rather long time ago, and I had to explicitly form the list, used
as the key argument for this function. Lattice has evolved since that, some
automation has appeared.

Try also using panel.identify, trellis.focus and other functions, listed on
the help page together with these two.



Sigbert Klinke wrote:
 
 I used xyplot to create conditional scatterplots.  My layout is 5x3 
 plots, but my data contains only 14 subgroups. So I would like to use 
 the empty plot to display additional information about the data. How can 
 I access the plot?
 

-- 
View this message in context: 
http://www.nabble.com/Accessing-plots-in-Trellis-graphics-tf3845949.html#a10892051
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Accessing plots in Trellis graphics

2007-05-31 Thread Deepayan Sarkar
On 5/31/07, Vladimir Eremeev [EMAIL PROTECTED] wrote:

 I used similar empty space to place the legend, by specifying the placement
 coordinates to the key argument of xyplot.
 This was rather long time ago, and I had to explicitly form the list, used
 as the key argument for this function. Lattice has evolved since that, some
 automation has appeared.

 Try also using panel.identify, trellis.focus and other functions, listed on
 the help page together with these two.

Another option is using page, as in this example from ?splom:

splom(~iris[1:3]|Species, data = iris,
  layout=c(2,2), pscales = 0,
  varnames = c(Sepal\nLength, Sepal\nWidth, Petal\nLength),
  page = function(...) {
  ltext(x = seq(.6, .8, len = 4),
y = seq(.9, .6, len = 4),
lab = c(Three, Varieties, of, Iris),
cex = 2)
  })

-Deepayan

 Sigbert Klinke wrote:
 
  I used xyplot to create conditional scatterplots.  My layout is 5x3
  plots, but my data contains only 14 subgroups. So I would like to use
  the empty plot to display additional information about the data. How can
  I access the plot?
 

 --
 View this message in context: 
 http://www.nabble.com/Accessing-plots-in-Trellis-graphics-tf3845949.html#a10892051
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@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
 and provide commented, minimal, self-contained, reproducible code.


__
R-help@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
and provide commented, minimal, self-contained, reproducible code.