Skip to content
Prev 43073 / 398503 Next

lattice: adding text between grouped panels?

--- In reply to Deepayan Sarkar: ---
Thank you again for your very helpful and inspiring answer!
Some additional questions will follow below.
This good idea seams to work. But:

- How can I determine in which panel I am?
  Principally I could to that by using a strip function.
  But the presence of a strip function allways (?) allocates
  space for the strip(s). How can I determine the panel
  when I don't want to display strips?
Thanks for this hint!

When I wanted add labels to each panel group of:

	my.barley <- subset( barley, ! ( site == "Grand Rapids" & year == "1932" ) )

	with( my.barley, dotplot(variety ~ yield | year * site, layout=c(6,2)
		, between=list(x=c(0,6))))


I tried:
	with( my.barley, dotplot(variety ~ yield | year * site, layout=c(6,2)
		, scales=list( rot=0, y=list( relation='sliced'
		, at = rep( list( 1: nlevels( variety ), NULL ), 6 )))))

I used:
- ``sliced'' because there was an error when I did not use it:
	"the at and labels components of scales may not be
	lists when relation = same".
- the at-option to eliminate the yaxis-labels within the panel groups.

I received:
- Several warning messages.
- No axis labels for panel groups with an empty first panel.
- Gigant scales in the second panels of each panel group.

What can I do to:
- Have normal scales in the second panels of each panel group?
- Eliminate the space between the first and the second panel
  in each group.
Thanks! Wolfram