Hi:

Instead of space = , use corner = c(x, y) instead. For upper right, c(1, 1);
for lower left, c(0, 0), and anywhere in between...

Here's an illustration, slightly modified from an earlier post this evening:

df <- data.frame(x = rnorm(30), y = rnorm(30))
library(reshape)
df2 <- melt(df)

library(lattice)
densityplot(~ value, data = df2, groups = variable, type = 'n',
            key = simpleKey(text = levels(df2$variable), corner = c(1, 0.5),
                                       lines = TRUE, points = FALSE))

Play around with the corner values...

HTH,
Dennis

On Tue, May 11, 2010 at 12:33 AM, Jay <josip.2000@gmail.com> wrote:

> Hello,
>
> adding the line:
>
> space = 'inside'
>
> to my xyplot() call provides a partial solution to the problem I
> have.. However, this command puts the key in the left upper corner
> when I want in the left upper corner. Looking at the help provides no
> additional options for the "inside", but surely this must be possible
> somehow?
>
>
> BR,
> Jay
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]

