Displaying 1 result from an estimated 1 matches for "irisk".
Did you mean:
risk
2013 Feb 15
3
lattice 3x3 plot: force common y-limits accross rows and align x-axes
...ot;
and "sliced" do not give correct results too. My code in in TRY TWO
below.
If anybody can offer any assistance with this problem, it would be much
appreciated,
Sincerely,
Boris.
#### BEGIN TRY ONE - MERGE LATTICE PLOTS ####
library(lattice)
library(latticeExtra)
library(grid)
for (irisk in levels(df$risk)) {
# subset data frame
df.irisk <- subset(df,risk==irisk)
# order subjects by total count; store levels of subjectx variables
# for later re-use in panel labels
df.irisk$subjectx <- df.irisk$subject[,drop=TRUE]
df.irisk$subjectx <- reorder(df.irisk$subjectx,...