Dan Bebber wrote:
> Is there any way of rotating tick labels in xyplot? Perhaps some command in 
> scales?
> My y-values are high (1000s) leading to a lot of white space in the plots.

  Yes, the scales section of ?xyplot mentions a rot argument.  Here is
an example:

df <- expand.grid(1:2, 1992:2002)
names(df) <- c("MSA", "YEAR")
df$IDUPREV <- runif(22)

library(lattice)

xyplot(IDUPREV ~ YEAR | MSA, data = df, scales=list(x=list(rot=45)))

> Thanks,
> Dan Bebber
> 
> Department of Plant Sciences
> University of Oxford
> 
> ______________________________________________
> [email protected] 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.
> 
> 

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894

______________________________________________
[email protected] 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.

Reply via email to