Re: [R] hide unused labels and resize panels in lattice barchart

2013-08-26 Thread Duncan Mackay
relation = > "free")), as.table = T) > > I think for you to resize the panels you need to recode tab$assignment > so that there are 1:max(tab$assignment) for each panel or label - ie > there would be 7 categories ie 1:7 in panel 1 and 6 in 2 ie 1:6 in panel 2. > A

Re: [R] hide unused labels and resize panels in lattice barchart

2013-08-25 Thread Noah Hoffman
> > -----Original Message----- > From: r-help-boun...@r-project.org [ > mailto:r-help-boun...@r-project.org] > On Behalf Of Noah Hoffman > Sent: Saturday, 24 August 2013 09:43 > To: r-help@r-project.org > Subject: [R] hide unused labels and resize panels in lattice barchar

Re: [R] hide unused labels and resize panels in lattice barchart

2013-08-25 Thread Duncan Mackay
: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Noah Hoffman Sent: Saturday, 24 August 2013 09:43 To: r-help@r-project.org Subject: [R] hide unused labels and resize panels in lattice barchart Hello - I'm stumped on a lattice question. I'll start with

[R] hide unused labels and resize panels in lattice barchart

2013-08-23 Thread Noah Hoffman
Hello - I'm stumped on a lattice question. I'll start with my existing code: library(lattice) library(latticeExtra) # no https for read.csv... tab <- read.csv(pipe('curl -s https://raw.github.com/gist/6323455')) fig <- barchart(assignment ~ freq | label, groups=method,