[R] lattice dotplot with missing levels in factor variable

2010-01-14 Thread Boris.Vasiliev
Hi, I am trying to create a dotplot where each panel shows levels vs. responses; the levels are sorted by responses but levels vary from one panel to another. However, I run into problems with controlling the y-limits and y-labels. In particular, suppose I have a data frame rsp -

Re: [R] lattice dotplot with missing levels in factor variable

2010-01-14 Thread Dennis Murphy
Hi: Based on an old R-help post, http://tolstoy.newcastle.edu.au/R/e2/help/06/09/1579.html I managed to get the desired plot with the following call: dotplot(reorder(lvl, rsp) ~ rsp | cat, data = xx, type = c('h', 'p'), layout = c(1, 2), scales = list(y = list(relation = 'free', rot =

Re: [R] lattice dotplot with missing levels in factor variable

2010-01-14 Thread Boris.Vasiliev
Subject: Re: [R] lattice dotplot with missing levels in factor variable Based on an old R-help post, *http://tolstoy.newcastle.edu.au/R/e2/help/06/09/1579.html I managed to get the desired plot with the following call: dotplot(reorder(lvl, rsp) ~ rsp | cat, data = xx, type = c( 'h', 'p'), layout